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년 전 조회 1,087
14년 전 조회 1,130
14년 전 조회 2,361
14년 전 조회 1,411
14년 전 조회 1,892
14년 전 조회 1,156
14년 전 조회 1,728
14년 전 조회 2,254
14년 전 조회 1,298
14년 전 조회 1,773
14년 전 조회 1,305
14년 전 조회 1,672
14년 전 조회 3,104
14년 전 조회 1,148
14년 전 조회 5,380
14년 전 조회 1,160
14년 전 조회 1,336
14년 전 조회 1,173
14년 전 조회 3,893
14년 전 조회 969
14년 전 조회 1,315
14년 전 조회 1,605
14년 전 조회 1,626
14년 전 조회 1,096
14년 전 조회 1,721
14년 전 조회 1,182
14년 전 조회 1,059
14년 전 조회 2,735
14년 전 조회 1,464
14년 전 조회 1,070
14년 전 조회 1,039
14년 전 조회 2,098
14년 전 조회 1,260
14년 전 조회 1,669
14년 전 조회 1,645
14년 전 조회 2,310
14년 전 조회 2,315
14년 전 조회 1,588
14년 전 조회 1,216
14년 전 조회 1,176
14년 전 조회 1,389
14년 전 조회 1,566
14년 전 조회 3,105
14년 전 조회 1,039
14년 전 조회 1,371
14년 전 조회 1,514
14년 전 조회 1,890
14년 전 조회 1,096
14년 전 조회 995
14년 전 조회 1,707
14년 전 조회 2,072
14년 전 조회 2,171
14년 전 조회 1,402
14년 전 조회 1,135
14년 전 조회 2,279
14년 전 조회 1,353
14년 전 조회 1,702
14년 전 조회 1,150
14년 전 조회 1,209
14년 전 조회 1,241
14년 전 조회 1,310
14년 전 조회 5,179
14년 전 조회 1,194
14년 전 조회 1,333
14년 전 조회 1,998
14년 전 조회 1,135
14년 전 조회 927
14년 전 조회 1,328
14년 전 조회 2,603
14년 전 조회 2,058
14년 전 조회 1,893
14년 전 조회 3,390
14년 전 조회 2,426
14년 전 조회 1,376
14년 전 조회 1,421
14년 전 조회 1,405
14년 전 조회 1,530
14년 전 조회 977
14년 전 조회 1,290
14년 전 조회 1,422
14년 전 조회 3,014
14년 전 조회 1,300
14년 전 조회 1,041
14년 전 조회 1,046
14년 전 조회 3,382
14년 전 조회 1,162
14년 전 조회 1,881
14년 전 조회 1,989
14년 전 조회 1,083
14년 전 조회 1,793
14년 전 조회 1,181
14년 전 조회 1,329
14년 전 조회 2,262
14년 전 조회 2,043
14년 전 조회 2,606
14년 전 조회 1,311
14년 전 조회 1,181
14년 전 조회 2,562
14년 전 조회 1,209
14년 전 조회 1,307