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년 전 조회 589
14년 전 조회 617
14년 전 조회 1,850
14년 전 조회 906
14년 전 조회 1,387
14년 전 조회 646
14년 전 조회 1,277
14년 전 조회 1,754
14년 전 조회 796
14년 전 조회 1,316
14년 전 조회 810
14년 전 조회 1,177
14년 전 조회 2,599
14년 전 조회 660
14년 전 조회 4,784
14년 전 조회 674
14년 전 조회 858
14년 전 조회 705
14년 전 조회 3,393
14년 전 조회 506
14년 전 조회 837
14년 전 조회 1,133
14년 전 조회 1,133
14년 전 조회 628
14년 전 조회 1,230
14년 전 조회 711
14년 전 조회 599
14년 전 조회 2,251
14년 전 조회 950
14년 전 조회 576
14년 전 조회 576
14년 전 조회 1,604
14년 전 조회 755
14년 전 조회 1,161
14년 전 조회 1,153
14년 전 조회 1,756
14년 전 조회 1,833
14년 전 조회 1,105
14년 전 조회 769
14년 전 조회 698
14년 전 조회 948
14년 전 조회 1,102
14년 전 조회 2,514
14년 전 조회 574
14년 전 조회 892
14년 전 조회 1,056
14년 전 조회 1,425
14년 전 조회 618
14년 전 조회 528
14년 전 조회 1,245
14년 전 조회 1,582
14년 전 조회 1,657
14년 전 조회 825
14년 전 조회 640
14년 전 조회 1,792
14년 전 조회 862
14년 전 조회 1,238
14년 전 조회 689
14년 전 조회 746
14년 전 조회 731
14년 전 조회 826
14년 전 조회 4,630
14년 전 조회 738
14년 전 조회 858
14년 전 조회 1,514
14년 전 조회 679
14년 전 조회 473
14년 전 조회 851
14년 전 조회 2,122
14년 전 조회 1,589
14년 전 조회 1,409
14년 전 조회 2,840
14년 전 조회 1,956
14년 전 조회 904
14년 전 조회 979
14년 전 조회 932
14년 전 조회 1,030
14년 전 조회 522
14년 전 조회 829
14년 전 조회 975
14년 전 조회 2,526
14년 전 조회 841
14년 전 조회 575
14년 전 조회 593
14년 전 조회 2,938
14년 전 조회 726
14년 전 조회 1,436
14년 전 조회 1,441
14년 전 조회 638
14년 전 조회 1,361
14년 전 조회 751
14년 전 조회 858
14년 전 조회 1,823
14년 전 조회 1,523
14년 전 조회 2,127
14년 전 조회 861
14년 전 조회 744
14년 전 조회 2,133
14년 전 조회 758
14년 전 조회 871
🐛 버그신고