v

[ActionScript 3.0] , MovieClipWithPlaying , 현제 무비클립이 재생 중인지 체크하기 위해서

[설명 및 사용방법]
flash 컨텐츠 작업을 하다 보면 하당 movieclip이 재생 중인 아니면 정지해 있는지 알아야 할 경우가 생김니다.
flash animation 을 다른 무비클립에서 로드를 하여 플레이를 시킨다고 가정 한다면, 컨텐츠 플레이어를 제작 할 경우 유용하게 이용 할 수 있습니다.
 
사용방법은 해당 flash animation 컨텐츠이 document class 를 MovieClipWithIsPlaying  으로 지정 해주고 사용 하면 됩니다.
 
 
package com.visualp{
 
 import flash.display.*;
 import flash.text.*;
 import flash.external.ExternalInterface;
 import flash.events.*;
 import flash.net.*;
 public class MovieClipWithIsPlaying extends MovieClip {
  
  private var _isPlaying:Boolean = true;
     
  
  public function get isPlaying():Boolean {
   return _isPlaying;
  }
  
  /**
   * Constructor
   */
  
  public function MovieClipWithIsPlaying(){
   super();
  }

  public override function gotoAndPlay(frame:Object, scene:String = null):void {
   _isPlaying = true;
   super.gotoAndPlay(frame, scene);
  }
  
  public override function gotoAndStop(frame:Object, scene:String = null):void {
   _isPlaying = false;
   super.gotoAndStop(frame, scene);
  }
  
  public override function nextFrame():void {
   _isPlaying = false;
   super.nextFrame();
  }
  
  public override function nextScene():void {
   _isPlaying = true;
   super.nextScene();
  }
  
  public override function play():void {
   _isPlaying = true;
   super.play();
  }
  
  public override function prevFrame():void {
   _isPlaying = false;
   super.prevFrame();
  }
  
  public override function prevScene():void {
   _isPlaying = true;
   super.prevScene();
  }
  
  public override function stop():void {
   _isPlaying = false;
   super.stop();
  }
 }
}
|

댓글 1개

감사합니다~~
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
14년 전 조회 1,171
14년 전 조회 1,215
14년 전 조회 2,464
14년 전 조회 1,505
14년 전 조회 1,986
14년 전 조회 1,247
14년 전 조회 1,816
14년 전 조회 2,350
14년 전 조회 1,396
14년 전 조회 1,865
14년 전 조회 1,401
14년 전 조회 1,764
14년 전 조회 3,201
14년 전 조회 1,253
14년 전 조회 5,433
14년 전 조회 1,249
14년 전 조회 1,437
14년 전 조회 1,258
14년 전 조회 3,987
14년 전 조회 1,061
14년 전 조회 1,406
14년 전 조회 1,694
14년 전 조회 1,719
14년 전 조회 1,184
14년 전 조회 1,808
14년 전 조회 1,268
14년 전 조회 1,153
14년 전 조회 2,818
14년 전 조회 1,560
14년 전 조회 1,159
14년 전 조회 1,139
14년 전 조회 2,177
14년 전 조회 1,344
14년 전 조회 1,755
14년 전 조회 1,736
14년 전 조회 2,372
14년 전 조회 2,406
14년 전 조회 1,680
14년 전 조회 1,300
14년 전 조회 1,261
14년 전 조회 1,484
14년 전 조회 1,659
14년 전 조회 3,160
14년 전 조회 1,121
14년 전 조회 1,469
14년 전 조회 1,594
14년 전 조회 1,974
14년 전 조회 1,175
14년 전 조회 1,058
14년 전 조회 1,787
14년 전 조회 2,153
14년 전 조회 2,239
14년 전 조회 1,440
14년 전 조회 1,206
14년 전 조회 2,347
14년 전 조회 1,428
14년 전 조회 1,771
14년 전 조회 1,224
14년 전 조회 1,285
14년 전 조회 1,309
14년 전 조회 1,387
14년 전 조회 5,227
14년 전 조회 1,260
14년 전 조회 1,415
14년 전 조회 2,083
14년 전 조회 1,204
14년 전 조회 999
14년 전 조회 1,399
14년 전 조회 2,669
14년 전 조회 2,110
14년 전 조회 1,961
14년 전 조회 3,434
14년 전 조회 2,500
14년 전 조회 1,460
14년 전 조회 1,489
14년 전 조회 1,476
14년 전 조회 1,598
14년 전 조회 1,046
14년 전 조회 1,371
14년 전 조회 1,492
14년 전 조회 3,090
14년 전 조회 1,389
14년 전 조회 1,118
14년 전 조회 1,103
14년 전 조회 3,453
14년 전 조회 1,232
14년 전 조회 1,953
14년 전 조회 2,035
14년 전 조회 1,167
14년 전 조회 1,854
14년 전 조회 1,256
14년 전 조회 1,400
14년 전 조회 2,334
14년 전 조회 2,091
14년 전 조회 2,677
14년 전 조회 1,379
14년 전 조회 1,257
14년 전 조회 2,631
14년 전 조회 1,277
14년 전 조회 1,393