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,549
14년 전 조회 1,571
14년 전 조회 2,818
14년 전 조회 1,875
14년 전 조회 2,312
14년 전 조회 1,606
14년 전 조회 2,174
14년 전 조회 2,681
14년 전 조회 1,753
14년 전 조회 2,224
14년 전 조회 1,743
14년 전 조회 2,111
14년 전 조회 3,572
14년 전 조회 1,604
14년 전 조회 5,752
14년 전 조회 1,614
14년 전 조회 1,781
14년 전 조회 1,634
14년 전 조회 4,336
14년 전 조회 1,429
14년 전 조회 1,753
14년 전 조회 2,072
14년 전 조회 2,081
14년 전 조회 1,554
14년 전 조회 2,179
14년 전 조회 1,640
14년 전 조회 1,525
14년 전 조회 3,184
14년 전 조회 1,918
14년 전 조회 1,506
14년 전 조회 1,484
14년 전 조회 2,534
14년 전 조회 1,686
14년 전 조회 2,103
14년 전 조회 2,082
14년 전 조회 2,691
14년 전 조회 2,762
14년 전 조회 2,032
14년 전 조회 1,680
14년 전 조회 1,598
14년 전 조회 1,813
14년 전 조회 2,005
14년 전 조회 3,460
14년 전 조회 1,483
14년 전 조회 1,823
14년 전 조회 1,963
14년 전 조회 2,332
14년 전 조회 1,540
14년 전 조회 1,431
14년 전 조회 2,142
14년 전 조회 2,484
14년 전 조회 2,562
14년 전 조회 1,752
14년 전 조회 1,546
14년 전 조회 2,678
14년 전 조회 1,759
14년 전 조회 2,149
14년 전 조회 1,580
14년 전 조회 1,670
14년 전 조회 1,623
14년 전 조회 1,715
14년 전 조회 5,553
14년 전 조회 1,609
14년 전 조회 1,743
14년 전 조회 2,420
14년 전 조회 1,573
14년 전 조회 1,361
14년 전 조회 1,717
14년 전 조회 3,012
14년 전 조회 2,431
14년 전 조회 2,281
14년 전 조회 3,716
14년 전 조회 2,815
14년 전 조회 1,771
14년 전 조회 1,837
14년 전 조회 1,797
14년 전 조회 1,908
14년 전 조회 1,367
14년 전 조회 1,691
14년 전 조회 1,825
14년 전 조회 3,385
14년 전 조회 1,690
14년 전 조회 1,441
14년 전 조회 1,429
14년 전 조회 3,792
14년 전 조회 1,553
14년 전 조회 2,257
14년 전 조회 2,294
14년 전 조회 1,488
14년 전 조회 2,162
14년 전 조회 1,575
14년 전 조회 1,695
14년 전 조회 2,633
14년 전 조회 2,356
14년 전 조회 2,972
14년 전 조회 1,670
14년 전 조회 1,560
14년 전 조회 2,949
14년 전 조회 1,584
14년 전 조회 1,706