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년 전 조회 601
14년 전 조회 629
14년 전 조회 1,863
14년 전 조회 919
14년 전 조회 1,399
14년 전 조회 661
14년 전 조회 1,286
14년 전 조회 1,771
14년 전 조회 812
14년 전 조회 1,328
14년 전 조회 825
14년 전 조회 1,188
14년 전 조회 2,615
14년 전 조회 673
14년 전 조회 4,799
14년 전 조회 684
14년 전 조회 872
14년 전 조회 717
14년 전 조회 3,409
14년 전 조회 517
14년 전 조회 852
14년 전 조회 1,146
14년 전 조회 1,147
14년 전 조회 639
14년 전 조회 1,244
14년 전 조회 720
14년 전 조회 615
14년 전 조회 2,266
14년 전 조회 961
14년 전 조회 592
14년 전 조회 587
14년 전 조회 1,616
14년 전 조회 768
14년 전 조회 1,172
14년 전 조회 1,161
14년 전 조회 1,769
14년 전 조회 1,845
14년 전 조회 1,121
14년 전 조회 783
14년 전 조회 711
14년 전 조회 960
14년 전 조회 1,117
14년 전 조회 2,529
14년 전 조회 588
14년 전 조회 908
14년 전 조회 1,064
14년 전 조회 1,436
14년 전 조회 629
14년 전 조회 542
14년 전 조회 1,254
14년 전 조회 1,597
14년 전 조회 1,669
14년 전 조회 839
14년 전 조회 651
14년 전 조회 1,805
14년 전 조회 875
14년 전 조회 1,252
14년 전 조회 700
14년 전 조회 758
14년 전 조회 749
14년 전 조회 839
14년 전 조회 4,643
14년 전 조회 755
14년 전 조회 871
14년 전 조회 1,528
14년 전 조회 693
14년 전 조회 488
14년 전 조회 865
14년 전 조회 2,137
14년 전 조회 1,602
14년 전 조회 1,426
14년 전 조회 2,852
14년 전 조회 1,968
14년 전 조회 919
14년 전 조회 991
14년 전 조회 945
14년 전 조회 1,045
14년 전 조회 535
14년 전 조회 842
14년 전 조회 992
14년 전 조회 2,543
14년 전 조회 859
14년 전 조회 588
14년 전 조회 604
14년 전 조회 2,956
14년 전 조회 738
14년 전 조회 1,451
14년 전 조회 1,454
14년 전 조회 651
14년 전 조회 1,374
14년 전 조회 763
14년 전 조회 873
14년 전 조회 1,837
14년 전 조회 1,539
14년 전 조회 2,144
14년 전 조회 876
14년 전 조회 758
14년 전 조회 2,144
14년 전 조회 774
14년 전 조회 883
🐛 버그신고