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년 전 조회 616
14년 전 조회 650
14년 전 조회 1,877
14년 전 조회 938
14년 전 조회 1,411
14년 전 조회 679
14년 전 조회 1,303
14년 전 조회 1,784
14년 전 조회 833
14년 전 조회 1,346
14년 전 조회 842
14년 전 조회 1,205
14년 전 조회 2,631
14년 전 조회 696
14년 전 조회 4,813
14년 전 조회 701
14년 전 조회 893
14년 전 조회 737
14년 전 조회 3,426
14년 전 조회 538
14년 전 조회 870
14년 전 조회 1,162
14년 전 조회 1,160
14년 전 조회 653
14년 전 조회 1,264
14년 전 조회 737
14년 전 조회 625
14년 전 조회 2,280
14년 전 조회 981
14년 전 조회 610
14년 전 조회 603
14년 전 조회 1,633
14년 전 조회 781
14년 전 조회 1,190
14년 전 조회 1,171
14년 전 조회 1,782
14년 전 조회 1,858
14년 전 조회 1,133
14년 전 조회 796
14년 전 조회 731
14년 전 조회 978
14년 전 조회 1,132
14년 전 조회 2,543
14년 전 조회 600
14년 전 조회 924
14년 전 조회 1,076
14년 전 조회 1,454
14년 전 조회 649
14년 전 조회 555
14년 전 조회 1,266
14년 전 조회 1,614
14년 전 조회 1,684
14년 전 조회 851
14년 전 조회 664
14년 전 조회 1,821
14년 전 조회 888
14년 전 조회 1,266
14년 전 조회 713
14년 전 조회 776
14년 전 조회 760
14년 전 조회 856
14년 전 조회 4,657
14년 전 조회 772
14년 전 조회 887
14년 전 조회 1,540
14년 전 조회 707
14년 전 조회 499
14년 전 조회 883
14년 전 조회 2,153
14년 전 조회 1,615
14년 전 조회 1,437
14년 전 조회 2,865
14년 전 조회 1,976
14년 전 조회 935
14년 전 조회 1,011
14년 전 조회 953
14년 전 조회 1,059
14년 전 조회 543
14년 전 조회 855
14년 전 조회 1,003
14년 전 조회 2,547
14년 전 조회 869
14년 전 조회 604
14년 전 조회 623
14년 전 조회 2,969
14년 전 조회 757
14년 전 조회 1,467
14년 전 조회 1,471
14년 전 조회 662
14년 전 조회 1,381
14년 전 조회 777
14년 전 조회 883
14년 전 조회 1,852
14년 전 조회 1,554
14년 전 조회 2,159
14년 전 조회 890
14년 전 조회 775
14년 전 조회 2,159
14년 전 조회 787
14년 전 조회 893
🐛 버그신고