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년 전 조회 593
14년 전 조회 623
14년 전 조회 1,860
14년 전 조회 911
14년 전 조회 1,392
14년 전 조회 649
14년 전 조회 1,284
14년 전 조회 1,761
14년 전 조회 807
14년 전 조회 1,321
14년 전 조회 818
14년 전 조회 1,184
14년 전 조회 2,608
14년 전 조회 666
14년 전 조회 4,792
14년 전 조회 678
14년 전 조회 863
14년 전 조회 711
14년 전 조회 3,401
14년 전 조회 512
14년 전 조회 846
14년 전 조회 1,142
14년 전 조회 1,139
14년 전 조회 632
14년 전 조회 1,237
14년 전 조회 717
14년 전 조회 608
14년 전 조회 2,258
14년 전 조회 957
14년 전 조회 585
14년 전 조회 583
14년 전 조회 1,613
14년 전 조회 764
14년 전 조회 1,167
14년 전 조회 1,158
14년 전 조회 1,763
14년 전 조회 1,840
14년 전 조회 1,112
14년 전 조회 774
14년 전 조회 709
14년 전 조회 954
14년 전 조회 1,111
14년 전 조회 2,521
14년 전 조회 584
14년 전 조회 900
14년 전 조회 1,063
14년 전 조회 1,433
14년 전 조회 627
14년 전 조회 536
14년 전 조회 1,250
14년 전 조회 1,590
14년 전 조회 1,661
14년 전 조회 831
14년 전 조회 648
14년 전 조회 1,800
14년 전 조회 872
14년 전 조회 1,243
14년 전 조회 696
14년 전 조회 751
14년 전 조회 739
14년 전 조회 835
14년 전 조회 4,637
14년 전 조회 746
14년 전 조회 866
14년 전 조회 1,522
14년 전 조회 689
14년 전 조회 482
14년 전 조회 858
14년 전 조회 2,129
14년 전 조회 1,596
14년 전 조회 1,420
14년 전 조회 2,847
14년 전 조회 1,961
14년 전 조회 914
14년 전 조회 986
14년 전 조회 937
14년 전 조회 1,039
14년 전 조회 531
14년 전 조회 836
14년 전 조회 986
14년 전 조회 2,531
14년 전 조회 847
14년 전 조회 581
14년 전 조회 600
14년 전 조회 2,945
14년 전 조회 733
14년 전 조회 1,447
14년 전 조회 1,450
14년 전 조회 644
14년 전 조회 1,369
14년 전 조회 759
14년 전 조회 865
14년 전 조회 1,832
14년 전 조회 1,534
14년 전 조회 2,135
14년 전 조회 868
14년 전 조회 750
14년 전 조회 2,138
14년 전 조회 768
14년 전 조회 877
🐛 버그신고