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년 전 조회 592
14년 전 조회 623
14년 전 조회 1,860
14년 전 조회 911
14년 전 조회 1,391
14년 전 조회 649
14년 전 조회 1,284
14년 전 조회 1,761
14년 전 조회 807
14년 전 조회 1,321
14년 전 조회 817
14년 전 조회 1,184
14년 전 조회 2,608
14년 전 조회 665
14년 전 조회 4,791
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년 전 조회 716
14년 전 조회 607
14년 전 조회 2,258
14년 전 조회 956
14년 전 조회 585
14년 전 조회 583
14년 전 조회 1,611
14년 전 조회 764
14년 전 조회 1,167
14년 전 조회 1,157
14년 전 조회 1,762
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,249
14년 전 조회 1,589
14년 전 조회 1,661
14년 전 조회 831
14년 전 조회 648
14년 전 조회 1,800
14년 전 조회 872
14년 전 조회 1,242
14년 전 조회 696
14년 전 조회 751
14년 전 조회 739
14년 전 조회 835
14년 전 조회 4,637
14년 전 조회 746
14년 전 조회 866
14년 전 조회 1,522
14년 전 조회 689
14년 전 조회 482
14년 전 조회 857
14년 전 조회 2,128
14년 전 조회 1,595
14년 전 조회 1,420
14년 전 조회 2,846
14년 전 조회 1,960
14년 전 조회 914
14년 전 조회 985
14년 전 조회 936
14년 전 조회 1,038
14년 전 조회 530
14년 전 조회 835
14년 전 조회 986
14년 전 조회 2,531
14년 전 조회 847
14년 전 조회 580
14년 전 조회 600
14년 전 조회 2,944
14년 전 조회 732
14년 전 조회 1,445
14년 전 조회 1,450
14년 전 조회 644
14년 전 조회 1,369
14년 전 조회 758
14년 전 조회 865
14년 전 조회 1,831
14년 전 조회 1,533
14년 전 조회 2,134
14년 전 조회 866
14년 전 조회 750
14년 전 조회 2,138
14년 전 조회 766
14년 전 조회 876
🐛 버그신고