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,855
14년 전 조회 909
14년 전 조회 1,390
14년 전 조회 649
14년 전 조회 1,282
14년 전 조회 1,758
14년 전 조회 805
14년 전 조회 1,320
14년 전 조회 816
14년 전 조회 1,179
14년 전 조회 2,606
14년 전 조회 664
14년 전 조회 4,788
14년 전 조회 677
14년 전 조회 863
14년 전 조회 709
14년 전 조회 3,399
14년 전 조회 509
14년 전 조회 843
14년 전 조회 1,140
14년 전 조회 1,137
14년 전 조회 630
14년 전 조회 1,234
14년 전 조회 713
14년 전 조회 604
14년 전 조회 2,255
14년 전 조회 954
14년 전 조회 581
14년 전 조회 581
14년 전 조회 1,608
14년 전 조회 760
14년 전 조회 1,163
14년 전 조회 1,154
14년 전 조회 1,760
14년 전 조회 1,837
14년 전 조회 1,108
14년 전 조회 772
14년 전 조회 704
14년 전 조회 950
14년 전 조회 1,108
14년 전 조회 2,518
14년 전 조회 580
14년 전 조회 897
14년 전 조회 1,060
14년 전 조회 1,430
14년 전 조회 623
14년 전 조회 534
14년 전 조회 1,246
14년 전 조회 1,587
14년 전 조회 1,658
14년 전 조회 828
14년 전 조회 646
14년 전 조회 1,796
14년 전 조회 867
14년 전 조회 1,241
14년 전 조회 694
14년 전 조회 750
14년 전 조회 735
14년 전 조회 831
14년 전 조회 4,634
14년 전 조회 743
14년 전 조회 862
14년 전 조회 1,517
14년 전 조회 686
14년 전 조회 480
14년 전 조회 854
14년 전 조회 2,125
14년 전 조회 1,592
14년 전 조회 1,418
14년 전 조회 2,843
14년 전 조회 1,958
14년 전 조회 910
14년 전 조회 983
14년 전 조회 934
14년 전 조회 1,035
14년 전 조회 526
14년 전 조회 833
14년 전 조회 984
14년 전 조회 2,530
14년 전 조회 846
14년 전 조회 579
14년 전 조회 595
14년 전 조회 2,943
14년 전 조회 729
14년 전 조회 1,442
14년 전 조회 1,445
14년 전 조회 642
14년 전 조회 1,364
14년 전 조회 756
14년 전 조회 862
14년 전 조회 1,828
14년 전 조회 1,531
14년 전 조회 2,133
14년 전 조회 865
14년 전 조회 748
14년 전 조회 2,136
14년 전 조회 766
14년 전 조회 875
🐛 버그신고