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년 전 조회 594
14년 전 조회 626
14년 전 조회 1,860
14년 전 조회 911
14년 전 조회 1,393
14년 전 조회 651
14년 전 조회 1,284
14년 전 조회 1,762
14년 전 조회 807
14년 전 조회 1,322
14년 전 조회 820
14년 전 조회 1,184
14년 전 조회 2,609
14년 전 조회 667
14년 전 조회 4,792
14년 전 조회 678
14년 전 조회 863
14년 전 조회 712
14년 전 조회 3,403
14년 전 조회 512
14년 전 조회 846
14년 전 조회 1,142
14년 전 조회 1,140
14년 전 조회 632
14년 전 조회 1,237
14년 전 조회 717
14년 전 조회 608
14년 전 조회 2,259
14년 전 조회 957
14년 전 조회 585
14년 전 조회 583
14년 전 조회 1,614
14년 전 조회 765
14년 전 조회 1,168
14년 전 조회 1,159
14년 전 조회 1,766
14년 전 조회 1,841
14년 전 조회 1,112
14년 전 조회 775
14년 전 조회 709
14년 전 조회 954
14년 전 조회 1,112
14년 전 조회 2,522
14년 전 조회 584
14년 전 조회 902
14년 전 조회 1,063
14년 전 조회 1,434
14년 전 조회 627
14년 전 조회 537
14년 전 조회 1,251
14년 전 조회 1,591
14년 전 조회 1,663
14년 전 조회 832
14년 전 조회 648
14년 전 조회 1,800
14년 전 조회 872
14년 전 조회 1,246
14년 전 조회 696
14년 전 조회 752
14년 전 조회 739
14년 전 조회 836
14년 전 조회 4,638
14년 전 조회 746
14년 전 조회 867
14년 전 조회 1,522
14년 전 조회 689
14년 전 조회 482
14년 전 조회 859
14년 전 조회 2,130
14년 전 조회 1,597
14년 전 조회 1,421
14년 전 조회 2,848
14년 전 조회 1,962
14년 전 조회 915
14년 전 조회 988
14년 전 조회 939
14년 전 조회 1,040
14년 전 조회 531
14년 전 조회 837
14년 전 조회 989
14년 전 조회 2,534
14년 전 조회 848
14년 전 조회 582
14년 전 조회 600
14년 전 조회 2,950
14년 전 조회 734
14년 전 조회 1,448
14년 전 조회 1,451
14년 전 조회 647
14년 전 조회 1,369
14년 전 조회 760
14년 전 조회 866
14년 전 조회 1,832
14년 전 조회 1,535
14년 전 조회 2,136
14년 전 조회 868
14년 전 조회 752
14년 전 조회 2,139
14년 전 조회 770
14년 전 조회 879
🐛 버그신고