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년 전 조회 600
14년 전 조회 629
14년 전 조회 1,862
14년 전 조회 917
14년 전 조회 1,399
14년 전 조회 658
14년 전 조회 1,286
14년 전 조회 1,769
14년 전 조회 810
14년 전 조회 1,326
14년 전 조회 822
14년 전 조회 1,188
14년 전 조회 2,614
14년 전 조회 673
14년 전 조회 4,796
14년 전 조회 681
14년 전 조회 871
14년 전 조회 717
14년 전 조회 3,409
14년 전 조회 517
14년 전 조회 850
14년 전 조회 1,146
14년 전 조회 1,145
14년 전 조회 638
14년 전 조회 1,244
14년 전 조회 720
14년 전 조회 613
14년 전 조회 2,265
14년 전 조회 959
14년 전 조회 589
14년 전 조회 585
14년 전 조회 1,615
14년 전 조회 768
14년 전 조회 1,171
14년 전 조회 1,160
14년 전 조회 1,768
14년 전 조회 1,845
14년 전 조회 1,118
14년 전 조회 782
14년 전 조회 710
14년 전 조회 958
14년 전 조회 1,116
14년 전 조회 2,527
14년 전 조회 588
14년 전 조회 908
14년 전 조회 1,063
14년 전 조회 1,435
14년 전 조회 629
14년 전 조회 540
14년 전 조회 1,253
14년 전 조회 1,597
14년 전 조회 1,667
14년 전 조회 838
14년 전 조회 651
14년 전 조회 1,805
14년 전 조회 872
14년 전 조회 1,250
14년 전 조회 700
14년 전 조회 755
14년 전 조회 749
14년 전 조회 838
14년 전 조회 4,641
14년 전 조회 754
14년 전 조회 869
14년 전 조회 1,526
14년 전 조회 692
14년 전 조회 486
14년 전 조회 863
14년 전 조회 2,136
14년 전 조회 1,602
14년 전 조회 1,425
14년 전 조회 2,850
14년 전 조회 1,967
14년 전 조회 917
14년 전 조회 990
14년 전 조회 945
14년 전 조회 1,043
14년 전 조회 532
14년 전 조회 840
14년 전 조회 991
14년 전 조회 2,542
14년 전 조회 858
14년 전 조회 586
14년 전 조회 604
14년 전 조회 2,955
14년 전 조회 738
14년 전 조회 1,449
14년 전 조회 1,454
14년 전 조회 651
14년 전 조회 1,374
14년 전 조회 761
14년 전 조회 873
14년 전 조회 1,836
14년 전 조회 1,538
14년 전 조회 2,143
14년 전 조회 875
14년 전 조회 757
14년 전 조회 2,143
14년 전 조회 774
14년 전 조회 881
🐛 버그신고