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,510
14년 전 조회 1,535
14년 전 조회 2,782
14년 전 조회 1,837
14년 전 조회 2,280
14년 전 조회 1,576
14년 전 조회 2,144
14년 전 조회 2,647
14년 전 조회 1,722
14년 전 조회 2,199
14년 전 조회 1,721
14년 전 조회 2,083
14년 전 조회 3,536
14년 전 조회 1,574
14년 전 조회 5,721
14년 전 조회 1,581
14년 전 조회 1,744
14년 전 조회 1,602
14년 전 조회 4,298
14년 전 조회 1,397
14년 전 조회 1,726
14년 전 조회 2,032
14년 전 조회 2,043
14년 전 조회 1,533
14년 전 조회 2,144
14년 전 조회 1,611
14년 전 조회 1,493
14년 전 조회 3,144
14년 전 조회 1,890
14년 전 조회 1,471
14년 전 조회 1,452
14년 전 조회 2,501
14년 전 조회 1,666
14년 전 조회 2,072
14년 전 조회 2,049
14년 전 조회 2,666
14년 전 조회 2,730
14년 전 조회 2,004
14년 전 조회 1,643
14년 전 조회 1,563
14년 전 조회 1,779
14년 전 조회 1,979
14년 전 조회 3,432
14년 전 조회 1,451
14년 전 조회 1,796
14년 전 조회 1,929
14년 전 조회 2,297
14년 전 조회 1,508
14년 전 조회 1,400
14년 전 조회 2,102
14년 전 조회 2,455
14년 전 조회 2,529
14년 전 조회 1,715
14년 전 조회 1,510
14년 전 조회 2,639
14년 전 조회 1,723
14년 전 조회 2,109
14년 전 조회 1,539
14년 전 조회 1,632
14년 전 조회 1,590
14년 전 조회 1,685
14년 전 조회 5,525
14년 전 조회 1,566
14년 전 조회 1,702
14년 전 조회 2,378
14년 전 조회 1,536
14년 전 조회 1,330
14년 전 조회 1,675
14년 전 조회 2,966
14년 전 조회 2,390
14년 전 조회 2,241
14년 전 조회 3,682
14년 전 조회 2,774
14년 전 조회 1,737
14년 전 조회 1,798
14년 전 조회 1,762
14년 전 조회 1,876
14년 전 조회 1,340
14년 전 조회 1,659
14년 전 조회 1,790
14년 전 조회 3,357
14년 전 조회 1,667
14년 전 조회 1,407
14년 전 조회 1,400
14년 전 조회 3,755
14년 전 조회 1,524
14년 전 조회 2,226
14년 전 조회 2,261
14년 전 조회 1,462
14년 전 조회 2,126
14년 전 조회 1,541
14년 전 조회 1,661
14년 전 조회 2,592
14년 전 조회 2,322
14년 전 조회 2,937
14년 전 조회 1,641
14년 전 조회 1,529
14년 전 조회 2,908
14년 전 조회 1,548
14년 전 조회 1,682