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,207
14년 전 조회 1,259
14년 전 조회 2,507
14년 전 조회 1,546
14년 전 조회 2,023
14년 전 조회 1,298
14년 전 조회 1,859
14년 전 조회 2,388
14년 전 조회 1,443
14년 전 조회 1,901
14년 전 조회 1,438
14년 전 조회 1,801
14년 전 조회 3,248
14년 전 조회 1,299
14년 전 조회 5,458
14년 전 조회 1,294
14년 전 조회 1,485
14년 전 조회 1,299
14년 전 조회 4,045
14년 전 조회 1,105
14년 전 조회 1,452
14년 전 조회 1,740
14년 전 조회 1,765
14년 전 조회 1,225
14년 전 조회 1,855
14년 전 조회 1,324
14년 전 조회 1,196
14년 전 조회 2,868
14년 전 조회 1,604
14년 전 조회 1,204
14년 전 조회 1,183
14년 전 조회 2,231
14년 전 조회 1,384
14년 전 조회 1,792
14년 전 조회 1,788
14년 전 조회 2,400
14년 전 조회 2,455
14년 전 조회 1,728
14년 전 조회 1,341
14년 전 조회 1,296
14년 전 조회 1,527
14년 전 조회 1,708
14년 전 조회 3,178
14년 전 조회 1,170
14년 전 조회 1,508
14년 전 조회 1,647
14년 전 조회 2,014
14년 전 조회 1,223
14년 전 조회 1,112
14년 전 조회 1,835
14년 전 조회 2,202
14년 전 조회 2,281
14년 전 조회 1,467
14년 전 조회 1,251
14년 전 조회 2,396
14년 전 조회 1,471
14년 전 조회 1,812
14년 전 조회 1,265
14년 전 조회 1,326
14년 전 조회 1,361
14년 전 조회 1,423
14년 전 조회 5,248
14년 전 조회 1,298
14년 전 조회 1,449
14년 전 조회 2,127
14년 전 조회 1,257
14년 전 조회 1,035
14년 전 조회 1,447
14년 전 조회 2,711
14년 전 조회 2,152
14년 전 조회 2,005
14년 전 조회 3,457
14년 전 조회 2,539
14년 전 조회 1,485
14년 전 조회 1,533
14년 전 조회 1,520
14년 전 조회 1,642
14년 전 조회 1,080
14년 전 조회 1,406
14년 전 조회 1,529
14년 전 조회 3,131
14년 전 조회 1,426
14년 전 조회 1,164
14년 전 조회 1,144
14년 전 조회 3,493
14년 전 조회 1,267
14년 전 조회 1,985
14년 전 조회 2,055
14년 전 조회 1,208
14년 전 조회 1,899
14년 전 조회 1,291
14년 전 조회 1,436
14년 전 조회 2,359
14년 전 조회 2,116
14년 전 조회 2,711
14년 전 조회 1,423
14년 전 조회 1,299
14년 전 조회 2,661
14년 전 조회 1,321
14년 전 조회 1,427