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년 전 조회 616
14년 전 조회 650
14년 전 조회 1,877
14년 전 조회 936
14년 전 조회 1,411
14년 전 조회 676
14년 전 조회 1,303
14년 전 조회 1,783
14년 전 조회 833
14년 전 조회 1,345
14년 전 조회 841
14년 전 조회 1,205
14년 전 조회 2,630
14년 전 조회 696
14년 전 조회 4,813
14년 전 조회 699
14년 전 조회 893
14년 전 조회 737
14년 전 조회 3,426
14년 전 조회 537
14년 전 조회 870
14년 전 조회 1,162
14년 전 조회 1,159
14년 전 조회 653
14년 전 조회 1,262
14년 전 조회 737
14년 전 조회 625
14년 전 조회 2,280
14년 전 조회 980
14년 전 조회 610
14년 전 조회 602
14년 전 조회 1,631
14년 전 조회 781
14년 전 조회 1,190
14년 전 조회 1,170
14년 전 조회 1,782
14년 전 조회 1,857
14년 전 조회 1,130
14년 전 조회 795
14년 전 조회 730
14년 전 조회 978
14년 전 조회 1,132
14년 전 조회 2,543
14년 전 조회 599
14년 전 조회 921
14년 전 조회 1,075
14년 전 조회 1,454
14년 전 조회 648
14년 전 조회 551
14년 전 조회 1,265
14년 전 조회 1,611
14년 전 조회 1,684
14년 전 조회 850
14년 전 조회 664
14년 전 조회 1,821
14년 전 조회 888
14년 전 조회 1,265
14년 전 조회 711
14년 전 조회 774
14년 전 조회 760
14년 전 조회 855
14년 전 조회 4,657
14년 전 조회 770
14년 전 조회 886
14년 전 조회 1,540
14년 전 조회 707
14년 전 조회 499
14년 전 조회 882
14년 전 조회 2,150
14년 전 조회 1,613
14년 전 조회 1,437
14년 전 조회 2,865
14년 전 조회 1,976
14년 전 조회 935
14년 전 조회 1,009
14년 전 조회 953
14년 전 조회 1,059
14년 전 조회 543
14년 전 조회 855
14년 전 조회 1,002
14년 전 조회 2,546
14년 전 조회 869
14년 전 조회 603
14년 전 조회 620
14년 전 조회 2,967
14년 전 조회 755
14년 전 조회 1,467
14년 전 조회 1,471
14년 전 조회 662
14년 전 조회 1,381
14년 전 조회 777
14년 전 조회 882
14년 전 조회 1,850
14년 전 조회 1,553
14년 전 조회 2,158
14년 전 조회 889
14년 전 조회 774
14년 전 조회 2,158
14년 전 조회 787
14년 전 조회 893
🐛 버그신고