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년 전 조회 599
14년 전 조회 627
14년 전 조회 1,861
14년 전 조회 912
14년 전 조회 1,398
14년 전 조회 656
14년 전 조회 1,285
14년 전 조회 1,763
14년 전 조회 807
14년 전 조회 1,323
14년 전 조회 820
14년 전 조회 1,185
14년 전 조회 2,610
14년 전 조회 669
14년 전 조회 4,793
14년 전 조회 680
14년 전 조회 866
14년 전 조회 715
14년 전 조회 3,404
14년 전 조회 515
14년 전 조회 849
14년 전 조회 1,145
14년 전 조회 1,140
14년 전 조회 633
14년 전 조회 1,238
14년 전 조회 720
14년 전 조회 609
14년 전 조회 2,264
14년 전 조회 957
14년 전 조회 586
14년 전 조회 584
14년 전 조회 1,614
14년 전 조회 765
14년 전 조회 1,170
14년 전 조회 1,159
14년 전 조회 1,766
14년 전 조회 1,842
14년 전 조회 1,114
14년 전 조회 779
14년 전 조회 710
14년 전 조회 955
14년 전 조회 1,114
14년 전 조회 2,524
14년 전 조회 584
14년 전 조회 906
14년 전 조회 1,063
14년 전 조회 1,434
14년 전 조회 627
14년 전 조회 537
14년 전 조회 1,252
14년 전 조회 1,594
14년 전 조회 1,665
14년 전 조회 837
14년 전 조회 649
14년 전 조회 1,803
14년 전 조회 872
14년 전 조회 1,246
14년 전 조회 699
14년 전 조회 754
14년 전 조회 745
14년 전 조회 836
14년 전 조회 4,640
14년 전 조회 750
14년 전 조회 867
14년 전 조회 1,525
14년 전 조회 690
14년 전 조회 483
14년 전 조회 860
14년 전 조회 2,132
14년 전 조회 1,600
14년 전 조회 1,421
14년 전 조회 2,850
14년 전 조회 1,965
14년 전 조회 915
14년 전 조회 990
14년 전 조회 942
14년 전 조회 1,041
14년 전 조회 531
14년 전 조회 838
14년 전 조회 989
14년 전 조회 2,540
14년 전 조회 853
14년 전 조회 584
14년 전 조회 602
14년 전 조회 2,952
14년 전 조회 737
14년 전 조회 1,448
14년 전 조회 1,453
14년 전 조회 649
14년 전 조회 1,371
14년 전 조회 760
14년 전 조회 869
14년 전 조회 1,836
14년 전 조회 1,536
14년 전 조회 2,141
14년 전 조회 871
14년 전 조회 754
14년 전 조회 2,141
14년 전 조회 772
14년 전 조회 880
🐛 버그신고