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년 전 조회 930
14년 전 조회 1,409
14년 전 조회 673
14년 전 조회 1,301
14년 전 조회 1,781
14년 전 조회 831
14년 전 조회 1,343
14년 전 조회 838
14년 전 조회 1,200
14년 전 조회 2,628
14년 전 조회 694
14년 전 조회 4,812
14년 전 조회 697
14년 전 조회 892
14년 전 조회 732
14년 전 조회 3,423
14년 전 조회 536
14년 전 조회 866
14년 전 조회 1,160
14년 전 조회 1,158
14년 전 조회 651
14년 전 조회 1,258
14년 전 조회 729
14년 전 조회 624
14년 전 조회 2,276
14년 전 조회 977
14년 전 조회 605
14년 전 조회 602
14년 전 조회 1,630
14년 전 조회 779
14년 전 조회 1,187
14년 전 조회 1,170
14년 전 조회 1,781
14년 전 조회 1,854
14년 전 조회 1,129
14년 전 조회 793
14년 전 조회 728
14년 전 조회 977
14년 전 조회 1,130
14년 전 조회 2,539
14년 전 조회 598
14년 전 조회 919
14년 전 조회 1,074
14년 전 조회 1,451
14년 전 조회 647
14년 전 조회 550
14년 전 조회 1,262
14년 전 조회 1,609
14년 전 조회 1,678
14년 전 조회 848
14년 전 조회 662
14년 전 조회 1,820
14년 전 조회 884
14년 전 조회 1,262
14년 전 조회 709
14년 전 조회 771
14년 전 조회 757
14년 전 조회 854
14년 전 조회 4,655
14년 전 조회 766
14년 전 조회 882
14년 전 조회 1,539
14년 전 조회 705
14년 전 조회 497
14년 전 조회 880
14년 전 조회 2,148
14년 전 조회 1,613
14년 전 조회 1,433
14년 전 조회 2,862
14년 전 조회 1,975
14년 전 조회 933
14년 전 조회 1,006
14년 전 조회 952
14년 전 조회 1,058
14년 전 조회 542
14년 전 조회 855
14년 전 조회 1,000
14년 전 조회 2,546
14년 전 조회 868
14년 전 조회 602
14년 전 조회 617
14년 전 조회 2,967
14년 전 조회 750
14년 전 조회 1,466
14년 전 조회 1,469
14년 전 조회 661
14년 전 조회 1,378
14년 전 조회 773
14년 전 조회 881
14년 전 조회 1,847
14년 전 조회 1,551
14년 전 조회 2,157
14년 전 조회 887
14년 전 조회 773
14년 전 조회 2,157
14년 전 조회 785
14년 전 조회 892
🐛 버그신고