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,859
14년 전 조회 910
14년 전 조회 1,391
14년 전 조회 649
14년 전 조회 1,282
14년 전 조회 1,759
14년 전 조회 805
14년 전 조회 1,320
14년 전 조회 817
14년 전 조회 1,180
14년 전 조회 2,606
14년 전 조회 665
14년 전 조회 4,788
14년 전 조회 677
14년 전 조회 863
14년 전 조회 710
14년 전 조회 3,399
14년 전 조회 509
14년 전 조회 845
14년 전 조회 1,141
14년 전 조회 1,138
14년 전 조회 631
14년 전 조회 1,237
14년 전 조회 714
14년 전 조회 605
14년 전 조회 2,257
14년 전 조회 954
14년 전 조회 582
14년 전 조회 581
14년 전 조회 1,609
14년 전 조회 762
14년 전 조회 1,163
14년 전 조회 1,156
14년 전 조회 1,761
14년 전 조회 1,838
14년 전 조회 1,109
14년 전 조회 772
14년 전 조회 706
14년 전 조회 950
14년 전 조회 1,111
14년 전 조회 2,521
14년 전 조회 582
14년 전 조회 899
14년 전 조회 1,061
14년 전 조회 1,432
14년 전 조회 625
14년 전 조회 535
14년 전 조회 1,248
14년 전 조회 1,588
14년 전 조회 1,658
14년 전 조회 830
14년 전 조회 648
14년 전 조회 1,798
14년 전 조회 869
14년 전 조회 1,241
14년 전 조회 694
14년 전 조회 750
14년 전 조회 735
14년 전 조회 833
14년 전 조회 4,635
14년 전 조회 743
14년 전 조회 864
14년 전 조회 1,521
14년 전 조회 687
14년 전 조회 481
14년 전 조회 856
14년 전 조회 2,126
14년 전 조회 1,593
14년 전 조회 1,418
14년 전 조회 2,843
14년 전 조회 1,959
14년 전 조회 910
14년 전 조회 983
14년 전 조회 934
14년 전 조회 1,036
14년 전 조회 526
14년 전 조회 833
14년 전 조회 984
14년 전 조회 2,531
14년 전 조회 846
14년 전 조회 579
14년 전 조회 596
14년 전 조회 2,943
14년 전 조회 730
14년 전 조회 1,444
14년 전 조회 1,447
14년 전 조회 642
14년 전 조회 1,366
14년 전 조회 756
14년 전 조회 863
14년 전 조회 1,829
14년 전 조회 1,532
14년 전 조회 2,133
14년 전 조회 865
14년 전 조회 749
14년 전 조회 2,137
14년 전 조회 766
14년 전 조회 875
🐛 버그신고