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년 전 조회 658
14년 전 조회 692
14년 전 조회 1,918
14년 전 조회 964
14년 전 조회 1,458
14년 전 조회 717
14년 전 조회 1,338
14년 전 조회 1,819
14년 전 조회 868
14년 전 조회 1,380
14년 전 조회 879
14년 전 조회 1,245
14년 전 조회 2,676
14년 전 조회 742
14년 전 조회 4,852
14년 전 조회 748
14년 전 조회 924
14년 전 조회 774
14년 전 조회 3,461
14년 전 조회 570
14년 전 조회 907
14년 전 조회 1,197
14년 전 조회 1,202
14년 전 조회 702
14년 전 조회 1,306
14년 전 조회 774
14년 전 조회 667
14년 전 조회 2,316
14년 전 조회 1,021
14년 전 조회 645
14년 전 조회 632
14년 전 조회 1,667
14년 전 조회 821
14년 전 조회 1,222
14년 전 조회 1,197
14년 전 조회 1,817
14년 전 조회 1,892
14년 전 조회 1,175
14년 전 조회 832
14년 전 조회 763
14년 전 조회 1,019
14년 전 조회 1,171
14년 전 조회 2,585
14년 전 조회 643
14년 전 조회 965
14년 전 조회 1,110
14년 전 조회 1,490
14년 전 조회 692
14년 전 조회 594
14년 전 조회 1,295
14년 전 조회 1,653
14년 전 조회 1,721
14년 전 조회 888
14년 전 조회 704
14년 전 조회 1,857
14년 전 조회 928
14년 전 조회 1,311
14년 전 조회 748
14년 전 조회 807
14년 전 조회 792
14년 전 조회 883
14년 전 조회 4,702
14년 전 조회 813
14년 전 조회 931
14년 전 조회 1,579
14년 전 조회 746
14년 전 조회 536
14년 전 조회 923
14년 전 조회 2,183
14년 전 조회 1,646
14년 전 조회 1,467
14년 전 조회 2,897
14년 전 조회 2,017
14년 전 조회 971
14년 전 조회 1,038
14년 전 조회 999
14년 전 조회 1,096
14년 전 조회 575
14년 전 조회 888
14년 전 조회 1,029
14년 전 조회 2,584
14년 전 조회 915
14년 전 조회 637
14년 전 조회 656
14년 전 조회 3,003
14년 전 조회 792
14년 전 조회 1,498
14년 전 조회 1,508
14년 전 조회 700
14년 전 조회 1,416
14년 전 조회 808
14년 전 조회 922
14년 전 조회 1,885
14년 전 조회 1,596
14년 전 조회 2,195
14년 전 조회 926
14년 전 조회 809
14년 전 조회 2,193
14년 전 조회 827
14년 전 조회 916
🐛 버그신고