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,194
14년 전 조회 1,248
14년 전 조회 2,494
14년 전 조회 1,529
14년 전 조회 2,017
14년 전 조회 1,284
14년 전 조회 1,848
14년 전 조회 2,379
14년 전 조회 1,431
14년 전 조회 1,893
14년 전 조회 1,428
14년 전 조회 1,788
14년 전 조회 3,233
14년 전 조회 1,289
14년 전 조회 5,451
14년 전 조회 1,287
14년 전 조회 1,474
14년 전 조회 1,284
14년 전 조회 4,028
14년 전 조회 1,097
14년 전 조회 1,443
14년 전 조회 1,728
14년 전 조회 1,756
14년 전 조회 1,207
14년 전 조회 1,841
14년 전 조회 1,312
14년 전 조회 1,181
14년 전 조회 2,859
14년 전 조회 1,589
14년 전 조회 1,191
14년 전 조회 1,174
14년 전 조회 2,220
14년 전 조회 1,366
14년 전 조회 1,781
14년 전 조회 1,775
14년 전 조회 2,395
14년 전 조회 2,444
14년 전 조회 1,713
14년 전 조회 1,328
14년 전 조회 1,291
14년 전 조회 1,519
14년 전 조회 1,695
14년 전 조회 3,172
14년 전 조회 1,161
14년 전 조회 1,500
14년 전 조회 1,629
14년 전 조회 2,005
14년 전 조회 1,210
14년 전 조회 1,095
14년 전 조회 1,819
14년 전 조회 2,190
14년 전 조회 2,268
14년 전 조회 1,460
14년 전 조회 1,238
14년 전 조회 2,386
14년 전 조회 1,463
14년 전 조회 1,797
14년 전 조회 1,255
14년 전 조회 1,309
14년 전 조회 1,346
14년 전 조회 1,417
14년 전 조회 5,245
14년 전 조회 1,290
14년 전 조회 1,442
14년 전 조회 2,116
14년 전 조회 1,241
14년 전 조회 1,028
14년 전 조회 1,438
14년 전 조회 2,701
14년 전 조회 2,141
14년 전 조회 1,995
14년 전 조회 3,452
14년 전 조회 2,530
14년 전 조회 1,480
14년 전 조회 1,524
14년 전 조회 1,507
14년 전 조회 1,630
14년 전 조회 1,071
14년 전 조회 1,398
14년 전 조회 1,518
14년 전 조회 3,123
14년 전 조회 1,421
14년 전 조회 1,153
14년 전 조회 1,132
14년 전 조회 3,485
14년 전 조회 1,259
14년 전 조회 1,981
14년 전 조회 2,050
14년 전 조회 1,196
14년 전 조회 1,893
14년 전 조회 1,282
14년 전 조회 1,423
14년 전 조회 2,354
14년 전 조회 2,109
14년 전 조회 2,702
14년 전 조회 1,404
14년 전 조회 1,290
14년 전 조회 2,654
14년 전 조회 1,311
14년 전 조회 1,421