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년 전 조회 588
14년 전 조회 616
14년 전 조회 1,849
14년 전 조회 906
14년 전 조회 1,386
14년 전 조회 644
14년 전 조회 1,276
14년 전 조회 1,753
14년 전 조회 794
14년 전 조회 1,314
14년 전 조회 808
14년 전 조회 1,175
14년 전 조회 2,597
14년 전 조회 659
14년 전 조회 4,782
14년 전 조회 672
14년 전 조회 857
14년 전 조회 701
14년 전 조회 3,388
14년 전 조회 505
14년 전 조회 834
14년 전 조회 1,133
14년 전 조회 1,131
14년 전 조회 625
14년 전 조회 1,229
14년 전 조회 711
14년 전 조회 598
14년 전 조회 2,251
14년 전 조회 949
14년 전 조회 574
14년 전 조회 574
14년 전 조회 1,603
14년 전 조회 754
14년 전 조회 1,161
14년 전 조회 1,151
14년 전 조회 1,756
14년 전 조회 1,831
14년 전 조회 1,104
14년 전 조회 764
14년 전 조회 697
14년 전 조회 944
14년 전 조회 1,100
14년 전 조회 2,512
14년 전 조회 571
14년 전 조회 892
14년 전 조회 1,053
14년 전 조회 1,423
14년 전 조회 615
14년 전 조회 527
14년 전 조회 1,243
14년 전 조회 1,581
14년 전 조회 1,655
14년 전 조회 825
14년 전 조회 639
14년 전 조회 1,790
14년 전 조회 861
14년 전 조회 1,235
14년 전 조회 687
14년 전 조회 743
14년 전 조회 731
14년 전 조회 824
14년 전 조회 4,629
14년 전 조회 735
14년 전 조회 857
14년 전 조회 1,511
14년 전 조회 676
14년 전 조회 471
14년 전 조회 849
14년 전 조회 2,117
14년 전 조회 1,586
14년 전 조회 1,408
14년 전 조회 2,838
14년 전 조회 1,951
14년 전 조회 902
14년 전 조회 976
14년 전 조회 929
14년 전 조회 1,029
14년 전 조회 519
14년 전 조회 826
14년 전 조회 974
14년 전 조회 2,526
14년 전 조회 840
14년 전 조회 573
14년 전 조회 590
14년 전 조회 2,938
14년 전 조회 721
14년 전 조회 1,434
14년 전 조회 1,439
14년 전 조회 637
14년 전 조회 1,357
14년 전 조회 747
14년 전 조회 856
14년 전 조회 1,822
14년 전 조회 1,521
14년 전 조회 2,126
14년 전 조회 857
14년 전 조회 740
14년 전 조회 2,130
14년 전 조회 757
14년 전 조회 869
🐛 버그신고