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년 전 조회 614
14년 전 조회 648
14년 전 조회 1,874
14년 전 조회 929
14년 전 조회 1,407
14년 전 조회 672
14년 전 조회 1,301
14년 전 조회 1,779
14년 전 조회 830
14년 전 조회 1,343
14년 전 조회 837
14년 전 조회 1,199
14년 전 조회 2,626
14년 전 조회 694
14년 전 조회 4,811
14년 전 조회 696
14년 전 조회 889
14년 전 조회 728
14년 전 조회 3,422
14년 전 조회 534
14년 전 조회 865
14년 전 조회 1,160
14년 전 조회 1,155
14년 전 조회 650
14년 전 조회 1,257
14년 전 조회 729
14년 전 조회 622
14년 전 조회 2,276
14년 전 조회 975
14년 전 조회 605
14년 전 조회 602
14년 전 조회 1,628
14년 전 조회 778
14년 전 조회 1,185
14년 전 조회 1,170
14년 전 조회 1,780
14년 전 조회 1,854
14년 전 조회 1,128
14년 전 조회 793
14년 전 조회 728
14년 전 조회 973
14년 전 조회 1,128
14년 전 조회 2,538
14년 전 조회 597
14년 전 조회 919
14년 전 조회 1,074
14년 전 조회 1,451
14년 전 조회 646
14년 전 조회 549
14년 전 조회 1,261
14년 전 조회 1,608
14년 전 조회 1,678
14년 전 조회 848
14년 전 조회 661
14년 전 조회 1,820
14년 전 조회 884
14년 전 조회 1,260
14년 전 조회 708
14년 전 조회 771
14년 전 조회 757
14년 전 조회 852
14년 전 조회 4,651
14년 전 조회 765
14년 전 조회 882
14년 전 조회 1,538
14년 전 조회 704
14년 전 조회 496
14년 전 조회 878
14년 전 조회 2,147
14년 전 조회 1,613
14년 전 조회 1,433
14년 전 조회 2,861
14년 전 조회 1,975
14년 전 조회 932
14년 전 조회 1,004
14년 전 조회 952
14년 전 조회 1,058
14년 전 조회 542
14년 전 조회 854
14년 전 조회 1,000
14년 전 조회 2,546
14년 전 조회 868
14년 전 조회 602
14년 전 조회 617
14년 전 조회 2,964
14년 전 조회 749
14년 전 조회 1,466
14년 전 조회 1,466
14년 전 조회 661
14년 전 조회 1,378
14년 전 조회 773
14년 전 조회 881
14년 전 조회 1,846
14년 전 조회 1,550
14년 전 조회 2,156
14년 전 조회 886
14년 전 조회 772
14년 전 조회 2,157
14년 전 조회 784
14년 전 조회 892
🐛 버그신고