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년 전 조회 601
14년 전 조회 629
14년 전 조회 1,863
14년 전 조회 919
14년 전 조회 1,399
14년 전 조회 661
14년 전 조회 1,290
14년 전 조회 1,772
14년 전 조회 815
14년 전 조회 1,329
14년 전 조회 825
14년 전 조회 1,189
14년 전 조회 2,616
14년 전 조회 674
14년 전 조회 4,799
14년 전 조회 686
14년 전 조회 872
14년 전 조회 718
14년 전 조회 3,410
14년 전 조회 520
14년 전 조회 853
14년 전 조회 1,149
14년 전 조회 1,148
14년 전 조회 640
14년 전 조회 1,245
14년 전 조회 723
14년 전 조회 615
14년 전 조회 2,268
14년 전 조회 962
14년 전 조회 593
14년 전 조회 591
14년 전 조회 1,617
14년 전 조회 768
14년 전 조회 1,175
14년 전 조회 1,161
14년 전 조회 1,770
14년 전 조회 1,846
14년 전 조회 1,123
14년 전 조회 784
14년 전 조회 713
14년 전 조회 961
14년 전 조회 1,119
14년 전 조회 2,529
14년 전 조회 588
14년 전 조회 910
14년 전 조회 1,065
14년 전 조회 1,439
14년 전 조회 631
14년 전 조회 543
14년 전 조회 1,255
14년 전 조회 1,600
14년 전 조회 1,669
14년 전 조회 841
14년 전 조회 653
14년 전 조회 1,807
14년 전 조회 878
14년 전 조회 1,254
14년 전 조회 702
14년 전 조회 760
14년 전 조회 750
14년 전 조회 842
14년 전 조회 4,643
14년 전 조회 757
14년 전 조회 874
14년 전 조회 1,530
14년 전 조회 695
14년 전 조회 488
14년 전 조회 865
14년 전 조회 2,138
14년 전 조회 1,603
14년 전 조회 1,427
14년 전 조회 2,854
14년 전 조회 1,969
14년 전 조회 922
14년 전 조회 994
14년 전 조회 945
14년 전 조회 1,046
14년 전 조회 537
14년 전 조회 845
14년 전 조회 993
14년 전 조회 2,544
14년 전 조회 860
14년 전 조회 589
14년 전 조회 605
14년 전 조회 2,956
14년 전 조회 741
14년 전 조회 1,453
14년 전 조회 1,456
14년 전 조회 651
14년 전 조회 1,374
14년 전 조회 763
14년 전 조회 875
14년 전 조회 1,838
14년 전 조회 1,541
14년 전 조회 2,145
14년 전 조회 877
14년 전 조회 761
14년 전 조회 2,145
14년 전 조회 777
14년 전 조회 884
🐛 버그신고