[설명 및 사용방법]
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.*;
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();
}
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개
13년 전
감사합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4032 | |
| 29 |
아우겐나이스
|
21년 전 | 4430 | |
| 28 |
아우겐나이스
|
21년 전 | 3449 | |
| 27 | 21년 전 | 5814 | ||
| 26 | 21년 전 | 3084 | ||
| 25 | 21년 전 | 6063 | ||
| 24 | 18년 전 | 3635 | ||
| 23 | 21년 전 | 3627 | ||
| 22 | 21년 전 | 4235 | ||
| 21 | 21년 전 | 3811 | ||
| 20 | 21년 전 | 4209 | ||
| 19 | 21년 전 | 6668 | ||
| 18 | 21년 전 | 4727 | ||
| 17 | 21년 전 | 6970 | ||
| 16 | 21년 전 | 4160 | ||
| 15 | 21년 전 | 2614 | ||
| 14 | 21년 전 | 4959 | ||
| 13 | 21년 전 | 3391 | ||
| 12 |
Recluse
|
21년 전 | 3863 | |
| 11 |
아우겐나이스
|
21년 전 | 3558 | |
| 10 |
Recluse
|
21년 전 | 3386 | |
| 9 | 21년 전 | 3964 | ||
| 8 | 21년 전 | 5152 | ||
| 7 | 21년 전 | 4749 | ||
| 6 | 21년 전 | 5659 | ||
| 5 | 21년 전 | 4102 | ||
| 4 | 21년 전 | 4821 | ||
| 3 | 21년 전 | 4733 | ||
| 2 | 21년 전 | 3231 | ||
| 1 | 22년 전 | 4331 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기