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개

감사합니다~~
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
14년 전 조회 1,079
14년 전 조회 1,123
14년 전 조회 2,353
14년 전 조회 1,409
14년 전 조회 1,889
14년 전 조회 1,152
14년 전 조회 1,725
14년 전 조회 2,249
14년 전 조회 1,292
14년 전 조회 1,770
14년 전 조회 1,296
14년 전 조회 1,668
14년 전 조회 3,101
14년 전 조회 1,142
14년 전 조회 5,377
14년 전 조회 1,154
14년 전 조회 1,334
14년 전 조회 1,167
14년 전 조회 3,890
14년 전 조회 968
14년 전 조회 1,315
14년 전 조회 1,603
14년 전 조회 1,624
14년 전 조회 1,093
14년 전 조회 1,716
14년 전 조회 1,181
14년 전 조회 1,056
14년 전 조회 2,733
14년 전 조회 1,462
14년 전 조회 1,068
14년 전 조회 1,037
14년 전 조회 2,093
14년 전 조회 1,253
14년 전 조회 1,667
14년 전 조회 1,641
14년 전 조회 2,306
14년 전 조회 2,308
14년 전 조회 1,587
14년 전 조회 1,212
14년 전 조회 1,174
14년 전 조회 1,386
14년 전 조회 1,564
14년 전 조회 3,103
14년 전 조회 1,035
14년 전 조회 1,364
14년 전 조회 1,510
14년 전 조회 1,885
14년 전 조회 1,091
14년 전 조회 989
14년 전 조회 1,701
14년 전 조회 2,069
14년 전 조회 2,169
14년 전 조회 1,400
14년 전 조회 1,132
14년 전 조회 2,274
14년 전 조회 1,350
14년 전 조회 1,697
14년 전 조회 1,145
14년 전 조회 1,208
14년 전 조회 1,239
14년 전 조회 1,301
14년 전 조회 5,174
14년 전 조회 1,191
14년 전 조회 1,328
14년 전 조회 1,996
14년 전 조회 1,129
14년 전 조회 922
14년 전 조회 1,323
14년 전 조회 2,600
14년 전 조회 2,054
14년 전 조회 1,886
14년 전 조회 3,388
14년 전 조회 2,425
14년 전 조회 1,372
14년 전 조회 1,415
14년 전 조회 1,401
14년 전 조회 1,524
14년 전 조회 972
14년 전 조회 1,287
14년 전 조회 1,414
14년 전 조회 3,010
14년 전 조회 1,299
14년 전 조회 1,038
14년 전 조회 1,042
14년 전 조회 3,381
14년 전 조회 1,160
14년 전 조회 1,875
14년 전 조회 1,986
14년 전 조회 1,077
14년 전 조회 1,788
14년 전 조회 1,175
14년 전 조회 1,323
14년 전 조회 2,256
14년 전 조회 2,039
14년 전 조회 2,600
14년 전 조회 1,309
14년 전 조회 1,179
14년 전 조회 2,561
14년 전 조회 1,205
14년 전 조회 1,304