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년 전 조회 619
14년 전 조회 651
14년 전 조회 1,880
14년 전 조회 941
14년 전 조회 1,415
14년 전 조회 682
14년 전 조회 1,307
14년 전 조회 1,786
14년 전 조회 835
14년 전 조회 1,349
14년 전 조회 845
14년 전 조회 1,207
14년 전 조회 2,634
14년 전 조회 701
14년 전 조회 4,818
14년 전 조회 706
14년 전 조회 898
14년 전 조회 739
14년 전 조회 3,429
14년 전 조회 540
14년 전 조회 872
14년 전 조회 1,164
14년 전 조회 1,165
14년 전 조회 662
14년 전 조회 1,266
14년 전 조회 739
14년 전 조회 632
14년 전 조회 2,281
14년 전 조회 982
14년 전 조회 612
14년 전 조회 605
14년 전 조회 1,637
14년 전 조회 782
14년 전 조회 1,191
14년 전 조회 1,173
14년 전 조회 1,786
14년 전 조회 1,862
14년 전 조회 1,138
14년 전 조회 799
14년 전 조회 731
14년 전 조회 980
14년 전 조회 1,135
14년 전 조회 2,544
14년 전 조회 602
14년 전 조회 928
14년 전 조회 1,079
14년 전 조회 1,454
14년 전 조회 650
14년 전 조회 557
14년 전 조회 1,268
14년 전 조회 1,617
14년 전 조회 1,687
14년 전 조회 855
14년 전 조회 668
14년 전 조회 1,823
14년 전 조회 891
14년 전 조회 1,268
14년 전 조회 717
14년 전 조회 779
14년 전 조회 765
14년 전 조회 858
14년 전 조회 4,659
14년 전 조회 775
14년 전 조회 889
14년 전 조회 1,542
14년 전 조회 708
14년 전 조회 503
14년 전 조회 885
14년 전 조회 2,156
14년 전 조회 1,617
14년 전 조회 1,440
14년 전 조회 2,866
14년 전 조회 1,979
14년 전 조회 938
14년 전 조회 1,012
14년 전 조회 956
14년 전 조회 1,060
14년 전 조회 546
14년 전 조회 856
14년 전 조회 1,005
14년 전 조회 2,549
14년 전 조회 873
14년 전 조회 605
14년 전 조회 623
14년 전 조회 2,970
14년 전 조회 758
14년 전 조회 1,469
14년 전 조회 1,471
14년 전 조회 664
14년 전 조회 1,386
14년 전 조회 780
14년 전 조회 887
14년 전 조회 1,852
14년 전 조회 1,555
14년 전 조회 2,162
14년 전 조회 891
14년 전 조회 776
14년 전 조회 2,162
14년 전 조회 789
14년 전 조회 896
🐛 버그신고