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년 전 조회 623
14년 전 조회 654
14년 전 조회 1,883
14년 전 조회 942
14년 전 조회 1,422
14년 전 조회 687
14년 전 조회 1,315
14년 전 조회 1,791
14년 전 조회 838
14년 전 조회 1,354
14년 전 조회 852
14년 전 조회 1,213
14년 전 조회 2,639
14년 전 조회 706
14년 전 조회 4,823
14년 전 조회 712
14년 전 조회 898
14년 전 조회 744
14년 전 조회 3,432
14년 전 조회 544
14년 전 조회 876
14년 전 조회 1,173
14년 전 조회 1,170
14년 전 조회 667
14년 전 조회 1,273
14년 전 조회 741
14년 전 조회 636
14년 전 조회 2,287
14년 전 조회 984
14년 전 조회 617
14년 전 조회 612
14년 전 조회 1,642
14년 전 조회 785
14년 전 조회 1,194
14년 전 조회 1,181
14년 전 조회 1,788
14년 전 조회 1,868
14년 전 조회 1,141
14년 전 조회 807
14년 전 조회 733
14년 전 조회 985
14년 전 조회 1,141
14년 전 조회 2,546
14년 전 조회 604
14년 전 조회 933
14년 전 조회 1,082
14년 전 조회 1,456
14년 전 조회 654
14년 전 조회 562
14년 전 조회 1,273
14년 전 조회 1,622
14년 전 조회 1,692
14년 전 조회 864
14년 전 조회 671
14년 전 조회 1,824
14년 전 조회 897
14년 전 조회 1,273
14년 전 조회 720
14년 전 조회 783
14년 전 조회 767
14년 전 조회 862
14년 전 조회 4,663
14년 전 조회 777
14년 전 조회 895
14년 전 조회 1,550
14년 전 조회 711
14년 전 조회 506
14년 전 조회 887
14년 전 조회 2,164
14년 전 조회 1,621
14년 전 조회 1,444
14년 전 조회 2,871
14년 전 조회 1,981
14년 전 조회 943
14년 전 조회 1,016
14년 전 조회 958
14년 전 조회 1,064
14년 전 조회 548
14년 전 조회 861
14년 전 조회 1,012
14년 전 조회 2,553
14년 전 조회 880
14년 전 조회 612
14년 전 조회 627
14년 전 조회 2,973
14년 전 조회 759
14년 전 조회 1,472
14년 전 조회 1,477
14년 전 조회 668
14년 전 조회 1,392
14년 전 조회 782
14년 전 조회 894
14년 전 조회 1,856
14년 전 조회 1,561
14년 전 조회 2,167
14년 전 조회 895
14년 전 조회 779
14년 전 조회 2,167
14년 전 조회 791
14년 전 조회 899
🐛 버그신고