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년 전 조회 608
14년 전 조회 638
14년 전 조회 1,869
14년 전 조회 923
14년 전 조회 1,404
14년 전 조회 666
14년 전 조회 1,296
14년 전 조회 1,776
14년 전 조회 822
14년 전 조회 1,331
14년 전 조회 829
14년 전 조회 1,193
14년 전 조회 2,620
14년 전 조회 684
14년 전 조회 4,802
14년 전 조회 693
14년 전 조회 882
14년 전 조회 725
14년 전 조회 3,416
14년 전 조회 525
14년 전 조회 860
14년 전 조회 1,152
14년 전 조회 1,154
14년 전 조회 645
14년 전 조회 1,249
14년 전 조회 727
14년 전 조회 618
14년 전 조회 2,273
14년 전 조회 966
14년 전 조회 599
14년 전 조회 595
14년 전 조회 1,621
14년 전 조회 771
14년 전 조회 1,182
14년 전 조회 1,164
14년 전 조회 1,774
14년 전 조회 1,849
14년 전 조회 1,125
14년 전 조회 790
14년 전 조회 718
14년 전 조회 966
14년 전 조회 1,121
14년 전 조회 2,534
14년 전 조회 594
14년 전 조회 913
14년 전 조회 1,069
14년 전 조회 1,444
14년 전 조회 636
14년 전 조회 546
14년 전 조회 1,260
14년 전 조회 1,604
14년 전 조회 1,672
14년 전 조회 843
14년 전 조회 657
14년 전 조회 1,812
14년 전 조회 880
14년 전 조회 1,257
14년 전 조회 706
14년 전 조회 765
14년 전 조회 754
14년 전 조회 845
14년 전 조회 4,646
14년 전 조회 762
14년 전 조회 876
14년 전 조회 1,534
14년 전 조회 700
14년 전 조회 491
14년 전 조회 871
14년 전 조회 2,142
14년 전 조회 1,606
14년 전 조회 1,430
14년 전 조회 2,856
14년 전 조회 1,974
14년 전 조회 928
14년 전 조회 999
14년 전 조회 948
14년 전 조회 1,051
14년 전 조회 538
14년 전 조회 847
14년 전 조회 997
14년 전 조회 2,545
14년 전 조회 862
14년 전 조회 593
14년 전 조회 610
14년 전 조회 2,959
14년 전 조회 743
14년 전 조회 1,462
14년 전 조회 1,463
14년 전 조회 655
14년 전 조회 1,376
14년 전 조회 767
14년 전 조회 880
14년 전 조회 1,840
14년 전 조회 1,547
14년 전 조회 2,151
14년 전 조회 882
14년 전 조회 763
14년 전 조회 2,153
14년 전 조회 780
14년 전 조회 885
🐛 버그신고