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년 전 조회 605
14년 전 조회 630
14년 전 조회 1,864
14년 전 조회 919
14년 전 조회 1,400
14년 전 조회 662
14년 전 조회 1,291
14년 전 조회 1,772
14년 전 조회 815
14년 전 조회 1,329
14년 전 조회 825
14년 전 조회 1,189
14년 전 조회 2,617
14년 전 조회 675
14년 전 조회 4,799
14년 전 조회 687
14년 전 조회 873
14년 전 조회 718
14년 전 조회 3,410
14년 전 조회 520
14년 전 조회 855
14년 전 조회 1,150
14년 전 조회 1,149
14년 전 조회 641
14년 전 조회 1,245
14년 전 조회 724
14년 전 조회 615
14년 전 조회 2,268
14년 전 조회 962
14년 전 조회 593
14년 전 조회 593
14년 전 조회 1,619
14년 전 조회 768
14년 전 조회 1,175
14년 전 조회 1,162
14년 전 조회 1,771
14년 전 조회 1,846
14년 전 조회 1,124
14년 전 조회 784
14년 전 조회 714
14년 전 조회 963
14년 전 조회 1,119
14년 전 조회 2,530
14년 전 조회 588
14년 전 조회 910
14년 전 조회 1,065
14년 전 조회 1,440
14년 전 조회 631
14년 전 조회 543
14년 전 조회 1,256
14년 전 조회 1,600
14년 전 조회 1,669
14년 전 조회 841
14년 전 조회 653
14년 전 조회 1,809
14년 전 조회 878
14년 전 조회 1,254
14년 전 조회 702
14년 전 조회 760
14년 전 조회 750
14년 전 조회 842
14년 전 조회 4,643
14년 전 조회 757
14년 전 조회 874
14년 전 조회 1,530
14년 전 조회 696
14년 전 조회 488
14년 전 조회 865
14년 전 조회 2,138
14년 전 조회 1,604
14년 전 조회 1,427
14년 전 조회 2,854
14년 전 조회 1,970
14년 전 조회 922
14년 전 조회 994
14년 전 조회 947
14년 전 조회 1,048
14년 전 조회 537
14년 전 조회 845
14년 전 조회 993
14년 전 조회 2,544
14년 전 조회 861
14년 전 조회 589
14년 전 조회 605
14년 전 조회 2,957
14년 전 조회 741
14년 전 조회 1,455
14년 전 조회 1,458
14년 전 조회 652
14년 전 조회 1,374
14년 전 조회 763
14년 전 조회 875
14년 전 조회 1,838
14년 전 조회 1,544
14년 전 조회 2,147
14년 전 조회 877
14년 전 조회 762
14년 전 조회 2,146
14년 전 조회 777
14년 전 조회 884
🐛 버그신고