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,514
14년 전 조회 1,541
14년 전 조회 2,787
14년 전 조회 1,842
14년 전 조회 2,284
14년 전 조회 1,578
14년 전 조회 2,147
14년 전 조회 2,651
14년 전 조회 1,725
14년 전 조회 2,201
14년 전 조회 1,722
14년 전 조회 2,087
14년 전 조회 3,541
14년 전 조회 1,577
14년 전 조회 5,725
14년 전 조회 1,585
14년 전 조회 1,750
14년 전 조회 1,603
14년 전 조회 4,302
14년 전 조회 1,401
14년 전 조회 1,728
14년 전 조회 2,036
14년 전 조회 2,047
14년 전 조회 1,536
14년 전 조회 2,150
14년 전 조회 1,613
14년 전 조회 1,496
14년 전 조회 3,145
14년 전 조회 1,896
14년 전 조회 1,475
14년 전 조회 1,456
14년 전 조회 2,505
14년 전 조회 1,666
14년 전 조회 2,074
14년 전 조회 2,056
14년 전 조회 2,668
14년 전 조회 2,735
14년 전 조회 2,007
14년 전 조회 1,647
14년 전 조회 1,568
14년 전 조회 1,782
14년 전 조회 1,981
14년 전 조회 3,434
14년 전 조회 1,454
14년 전 조회 1,796
14년 전 조회 1,935
14년 전 조회 2,301
14년 전 조회 1,511
14년 전 조회 1,403
14년 전 조회 2,107
14년 전 조회 2,458
14년 전 조회 2,530
14년 전 조회 1,716
14년 전 조회 1,514
14년 전 조회 2,642
14년 전 조회 1,727
14년 전 조회 2,112
14년 전 조회 1,542
14년 전 조회 1,634
14년 전 조회 1,593
14년 전 조회 1,688
14년 전 조회 5,529
14년 전 조회 1,573
14년 전 조회 1,711
14년 전 조회 2,381
14년 전 조회 1,541
14년 전 조회 1,332
14년 전 조회 1,679
14년 전 조회 2,970
14년 전 조회 2,392
14년 전 조회 2,246
14년 전 조회 3,687
14년 전 조회 2,779
14년 전 조회 1,741
14년 전 조회 1,801
14년 전 조회 1,765
14년 전 조회 1,880
14년 전 조회 1,343
14년 전 조회 1,661
14년 전 조회 1,796
14년 전 조회 3,359
14년 전 조회 1,669
14년 전 조회 1,410
14년 전 조회 1,401
14년 전 조회 3,759
14년 전 조회 1,528
14년 전 조회 2,229
14년 전 조회 2,263
14년 전 조회 1,464
14년 전 조회 2,129
14년 전 조회 1,545
14년 전 조회 1,663
14년 전 조회 2,597
14년 전 조회 2,326
14년 전 조회 2,937
14년 전 조회 1,644
14년 전 조회 1,532
14년 전 조회 2,911
14년 전 조회 1,553
14년 전 조회 1,684