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,310
14년 전 조회 1,361
14년 전 조회 2,604
14년 전 조회 1,649
14년 전 조회 2,102
14년 전 조회 1,394
14년 전 조회 1,956
14년 전 조회 2,484
14년 전 조회 1,562
14년 전 조회 2,008
14년 전 조회 1,535
14년 전 조회 1,917
14년 전 조회 3,357
14년 전 조회 1,400
14년 전 조회 5,556
14년 전 조회 1,381
14년 전 조회 1,568
14년 전 조회 1,407
14년 전 조회 4,137
14년 전 조회 1,213
14년 전 조회 1,549
14년 전 조회 1,855
14년 전 조회 1,865
14년 전 조회 1,336
14년 전 조회 1,968
14년 전 조회 1,434
14년 전 조회 1,311
14년 전 조회 2,963
14년 전 조회 1,732
14년 전 조회 1,301
14년 전 조회 1,278
14년 전 조회 2,327
14년 전 조회 1,505
14년 전 조회 1,904
14년 전 조회 1,881
14년 전 조회 2,483
14년 전 조회 2,549
14년 전 조회 1,835
14년 전 조회 1,446
14년 전 조회 1,392
14년 전 조회 1,624
14년 전 조회 1,821
14년 전 조회 3,266
14년 전 조회 1,285
14년 전 조회 1,633
14년 전 조회 1,747
14년 전 조회 2,123
14년 전 조회 1,324
14년 전 조회 1,214
14년 전 조회 1,913
14년 전 조회 2,278
14년 전 조회 2,365
14년 전 조회 1,539
14년 전 조회 1,353
14년 전 조회 2,475
14년 전 조회 1,566
14년 전 조회 1,908
14년 전 조회 1,358
14년 전 조회 1,432
14년 전 조회 1,432
14년 전 조회 1,508
14년 전 조회 5,335
14년 전 조회 1,395
14년 전 조회 1,534
14년 전 조회 2,212
14년 전 조회 1,348
14년 전 조회 1,134
14년 전 조회 1,527
14년 전 조회 2,821
14년 전 조회 2,226
14년 전 조회 2,098
14년 전 조회 3,527
14년 전 조회 2,638
14년 전 조회 1,579
14년 전 조회 1,645
14년 전 조회 1,608
14년 전 조회 1,720
14년 전 조회 1,182
14년 전 조회 1,506
14년 전 조회 1,625
14년 전 조회 3,217
14년 전 조회 1,518
14년 전 조회 1,244
14년 전 조회 1,243
14년 전 조회 3,591
14년 전 조회 1,355
14년 전 조회 2,070
14년 전 조회 2,110
14년 전 조회 1,306
14년 전 조회 1,993
14년 전 조회 1,387
14년 전 조회 1,531
14년 전 조회 2,442
14년 전 조회 2,183
14년 전 조회 2,791
14년 전 조회 1,507
14년 전 조회 1,392
14년 전 조회 2,752
14년 전 조회 1,399
14년 전 조회 1,530