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,348
14년 전 조회 1,384
14년 전 조회 2,632
14년 전 조회 1,685
14년 전 조회 2,138
14년 전 조회 1,420
14년 전 조회 1,986
14년 전 조회 2,505
14년 전 조회 1,577
14년 전 조회 2,037
14년 전 조회 1,559
14년 전 조회 1,943
14년 전 조회 3,381
14년 전 조회 1,428
14년 전 조회 5,584
14년 전 조회 1,409
14년 전 조회 1,594
14년 전 조회 1,438
14년 전 조회 4,159
14년 전 조회 1,237
14년 전 조회 1,582
14년 전 조회 1,881
14년 전 조회 1,884
14년 전 조회 1,366
14년 전 조회 1,995
14년 전 조회 1,453
14년 전 조회 1,341
14년 전 조회 2,988
14년 전 조회 1,750
14년 전 조회 1,325
14년 전 조회 1,314
14년 전 조회 2,348
14년 전 조회 1,532
14년 전 조회 1,922
14년 전 조회 1,904
14년 전 조회 2,516
14년 전 조회 2,582
14년 전 조회 1,852
14년 전 조회 1,476
14년 전 조회 1,415
14년 전 조회 1,647
14년 전 조회 1,849
14년 전 조회 3,293
14년 전 조회 1,309
14년 전 조회 1,656
14년 전 조회 1,773
14년 전 조회 2,147
14년 전 조회 1,357
14년 전 조회 1,247
14년 전 조회 1,943
14년 전 조회 2,305
14년 전 조회 2,387
14년 전 조회 1,563
14년 전 조회 1,375
14년 전 조회 2,494
14년 전 조회 1,599
14년 전 조회 1,927
14년 전 조회 1,387
14년 전 조회 1,462
14년 전 조회 1,457
14년 전 조회 1,527
14년 전 조회 5,367
14년 전 조회 1,417
14년 전 조회 1,562
14년 전 조회 2,244
14년 전 조회 1,375
14년 전 조회 1,168
14년 전 조회 1,550
14년 전 조회 2,847
14년 전 조회 2,241
14년 전 조회 2,130
14년 전 조회 3,550
14년 전 조회 2,661
14년 전 조회 1,600
14년 전 조회 1,670
14년 전 조회 1,634
14년 전 조회 1,750
14년 전 조회 1,218
14년 전 조회 1,532
14년 전 조회 1,653
14년 전 조회 3,234
14년 전 조회 1,540
14년 전 조회 1,271
14년 전 조회 1,274
14년 전 조회 3,615
14년 전 조회 1,389
14년 전 조회 2,094
14년 전 조회 2,139
14년 전 조회 1,341
14년 전 조회 2,015
14년 전 조회 1,419
14년 전 조회 1,554
14년 전 조회 2,469
14년 전 조회 2,207
14년 전 조회 2,818
14년 전 조회 1,530
14년 전 조회 1,417
14년 전 조회 2,775
14년 전 조회 1,428
14년 전 조회 1,557