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,193
14년 전 조회 1,243
14년 전 조회 2,492
14년 전 조회 1,528
14년 전 조회 2,012
14년 전 조회 1,281
14년 전 조회 1,848
14년 전 조회 2,376
14년 전 조회 1,427
14년 전 조회 1,892
14년 전 조회 1,425
14년 전 조회 1,786
14년 전 조회 3,230
14년 전 조회 1,287
14년 전 조회 5,449
14년 전 조회 1,285
14년 전 조회 1,473
14년 전 조회 1,283
14년 전 조회 4,026
14년 전 조회 1,095
14년 전 조회 1,440
14년 전 조회 1,724
14년 전 조회 1,750
14년 전 조회 1,206
14년 전 조회 1,839
14년 전 조회 1,307
14년 전 조회 1,178
14년 전 조회 2,858
14년 전 조회 1,589
14년 전 조회 1,189
14년 전 조회 1,173
14년 전 조회 2,217
14년 전 조회 1,366
14년 전 조회 1,780
14년 전 조회 1,771
14년 전 조회 2,394
14년 전 조회 2,441
14년 전 조회 1,711
14년 전 조회 1,328
14년 전 조회 1,288
14년 전 조회 1,517
14년 전 조회 1,693
14년 전 조회 3,171
14년 전 조회 1,160
14년 전 조회 1,499
14년 전 조회 1,626
14년 전 조회 2,003
14년 전 조회 1,207
14년 전 조회 1,093
14년 전 조회 1,815
14년 전 조회 2,189
14년 전 조회 2,266
14년 전 조회 1,458
14년 전 조회 1,233
14년 전 조회 2,383
14년 전 조회 1,459
14년 전 조회 1,796
14년 전 조회 1,255
14년 전 조회 1,309
14년 전 조회 1,342
14년 전 조회 1,416
14년 전 조회 5,245
14년 전 조회 1,290
14년 전 조회 1,439
14년 전 조회 2,113
14년 전 조회 1,239
14년 전 조회 1,026
14년 전 조회 1,437
14년 전 조회 2,700
14년 전 조회 2,139
14년 전 조회 1,991
14년 전 조회 3,452
14년 전 조회 2,528
14년 전 조회 1,479
14년 전 조회 1,519
14년 전 조회 1,507
14년 전 조회 1,628
14년 전 조회 1,069
14년 전 조회 1,395
14년 전 조회 1,517
14년 전 조회 3,120
14년 전 조회 1,417
14년 전 조회 1,153
14년 전 조회 1,132
14년 전 조회 3,481
14년 전 조회 1,258
14년 전 조회 1,976
14년 전 조회 2,050
14년 전 조회 1,195
14년 전 조회 1,891
14년 전 조회 1,282
14년 전 조회 1,420
14년 전 조회 2,354
14년 전 조회 2,108
14년 전 조회 2,702
14년 전 조회 1,403
14년 전 조회 1,289
14년 전 조회 2,651
14년 전 조회 1,309
14년 전 조회 1,416