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,195
14년 전 조회 1,248
14년 전 조회 2,494
14년 전 조회 1,530
14년 전 조회 2,018
14년 전 조회 1,284
14년 전 조회 1,850
14년 전 조회 2,380
14년 전 조회 1,433
14년 전 조회 1,893
14년 전 조회 1,428
14년 전 조회 1,789
14년 전 조회 3,235
14년 전 조회 1,291
14년 전 조회 5,453
14년 전 조회 1,288
14년 전 조회 1,475
14년 전 조회 1,284
14년 전 조회 4,032
14년 전 조회 1,097
14년 전 조회 1,444
14년 전 조회 1,728
14년 전 조회 1,756
14년 전 조회 1,209
14년 전 조회 1,842
14년 전 조회 1,312
14년 전 조회 1,184
14년 전 조회 2,859
14년 전 조회 1,592
14년 전 조회 1,194
14년 전 조회 1,175
14년 전 조회 2,222
14년 전 조회 1,368
14년 전 조회 1,783
14년 전 조회 1,777
14년 전 조회 2,397
14년 전 조회 2,445
14년 전 조회 1,713
14년 전 조회 1,331
14년 전 조회 1,291
14년 전 조회 1,520
14년 전 조회 1,695
14년 전 조회 3,172
14년 전 조회 1,161
14년 전 조회 1,501
14년 전 조회 1,630
14년 전 조회 2,008
14년 전 조회 1,212
14년 전 조회 1,100
14년 전 조회 1,820
14년 전 조회 2,192
14년 전 조회 2,270
14년 전 조회 1,462
14년 전 조회 1,239
14년 전 조회 2,386
14년 전 조회 1,463
14년 전 조회 1,799
14년 전 조회 1,257
14년 전 조회 1,312
14년 전 조회 1,349
14년 전 조회 1,418
14년 전 조회 5,246
14년 전 조회 1,290
14년 전 조회 1,444
14년 전 조회 2,120
14년 전 조회 1,247
14년 전 조회 1,028
14년 전 조회 1,438
14년 전 조회 2,703
14년 전 조회 2,143
14년 전 조회 1,995
14년 전 조회 3,452
14년 전 조회 2,532
14년 전 조회 1,480
14년 전 조회 1,526
14년 전 조회 1,508
14년 전 조회 1,631
14년 전 조회 1,072
14년 전 조회 1,400
14년 전 조회 1,520
14년 전 조회 3,125
14년 전 조회 1,423
14년 전 조회 1,153
14년 전 조회 1,135
14년 전 조회 3,485
14년 전 조회 1,261
14년 전 조회 1,981
14년 전 조회 2,051
14년 전 조회 1,199
14년 전 조회 1,893
14년 전 조회 1,283
14년 전 조회 1,426
14년 전 조회 2,354
14년 전 조회 2,110
14년 전 조회 2,704
14년 전 조회 1,406
14년 전 조회 1,292
14년 전 조회 2,655
14년 전 조회 1,311
14년 전 조회 1,421