[설명 및 사용방법]
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년 전
감사합니다~~
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5827 | 10년 전 | 382 | ||
| 5826 | 10년 전 | 379 | ||
| 5825 | 10년 전 | 335 | ||
| 5824 | 10년 전 | 496 | ||
| 5823 | 10년 전 | 514 | ||
| 5822 | 10년 전 | 317 | ||
| 5821 | 10년 전 | 622 | ||
| 5820 | 10년 전 | 925 | ||
| 5819 | 10년 전 | 453 | ||
| 5818 | 10년 전 | 591 | ||
| 5817 |
|
10년 전 | 1404 | |
| 5816 | 10년 전 | 421 | ||
| 5815 | 10년 전 | 397 | ||
| 5814 | 10년 전 | 371 | ||
| 5813 |
|
10년 전 | 1174 | |
| 5812 | 10년 전 | 473 | ||
| 5811 | 10년 전 | 256 | ||
| 5810 | 10년 전 | 283 | ||
| 5809 | 10년 전 | 488 | ||
| 5808 | 10년 전 | 336 | ||
| 5807 | 10년 전 | 307 | ||
| 5806 | 10년 전 | 277 | ||
| 5805 | 10년 전 | 303 | ||
| 5804 | 10년 전 | 296 | ||
| 5803 | 10년 전 | 291 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기