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년 전 조회 717
14년 전 조회 733
14년 전 조회 1,976
14년 전 조회 1,013
14년 전 조회 1,507
14년 전 조회 764
14년 전 조회 1,376
14년 전 조회 1,880
14년 전 조회 917
14년 전 조회 1,412
14년 전 조회 933
14년 전 조회 1,289
14년 전 조회 2,719
14년 전 조회 795
14년 전 조회 4,899
14년 전 조회 788
14년 전 조회 968
14년 전 조회 807
14년 전 조회 3,520
14년 전 조회 607
14년 전 조회 951
14년 전 조회 1,245
14년 전 조회 1,256
14년 전 조회 740
14년 전 조회 1,359
14년 전 조회 836
14년 전 조회 706
14년 전 조회 2,377
14년 전 조회 1,067
14년 전 조회 696
14년 전 조회 680
14년 전 조회 1,713
14년 전 조회 870
14년 전 조회 1,286
14년 전 조회 1,249
14년 전 조회 1,877
14년 전 조회 1,960
14년 전 조회 1,231
14년 전 조회 874
14년 전 조회 804
14년 전 조회 1,050
14년 전 조회 1,220
14년 전 조회 2,642
14년 전 조회 690
14년 전 조회 1,015
14년 전 조회 1,153
14년 전 조회 1,531
14년 전 조회 739
14년 전 조회 645
14년 전 조회 1,358
14년 전 조회 1,704
14년 전 조회 1,766
14년 전 조회 945
14년 전 조회 758
14년 전 조회 1,899
14년 전 조회 975
14년 전 조회 1,355
14년 전 조회 786
14년 전 조회 855
14년 전 조회 852
14년 전 조회 937
14년 전 조회 4,749
14년 전 조회 843
14년 전 조회 974
14년 전 조회 1,623
14년 전 조회 791
14년 전 조회 584
14년 전 조회 971
14년 전 조회 2,232
14년 전 조회 1,698
14년 전 조회 1,511
14년 전 조회 2,961
14년 전 조회 2,065
14년 전 조회 1,020
14년 전 조회 1,078
14년 전 조회 1,040
14년 전 조회 1,141
14년 전 조회 627
14년 전 조회 937
14년 전 조회 1,078
14년 전 조회 2,635
14년 전 조회 963
14년 전 조회 691
14년 전 조회 698
14년 전 조회 3,062
14년 전 조회 840
14년 전 조회 1,550
14년 전 조회 1,556
14년 전 조회 756
14년 전 조회 1,458
14년 전 조회 858
14년 전 조회 976
14년 전 조회 1,935
14년 전 조회 1,634
14년 전 조회 2,249
14년 전 조회 967
14년 전 조회 854
14년 전 조회 2,235
14년 전 조회 877
14년 전 조회 965