[설명 및 사용방법]
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년 전
감사합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4230 |
|
14년 전 | 1558 | |
| 4229 | 14년 전 | 1116 | ||
| 4228 | 14년 전 | 2113 | ||
| 4227 | 14년 전 | 800 | ||
| 4226 |
|
14년 전 | 820 | |
| 4225 |
천국의눈믈
|
14년 전 | 638 | |
| 4224 |
visualp
|
14년 전 | 1437 | |
| 4223 |
visualp
|
14년 전 | 1050 | |
| 4222 |
visualp
|
14년 전 | 772 | |
| 4221 |
visualp
|
14년 전 | 5304 | |
| 4220 | 14년 전 | 1907 | ||
| 4219 | 14년 전 | 1151 | ||
| 4218 | 14년 전 | 645 | ||
| 4217 | 14년 전 | 9443 | ||
| 4216 | 14년 전 | 1558 | ||
| 4215 |
|
14년 전 | 575 | |
| 4214 | 14년 전 | 564 | ||
| 4213 | 14년 전 | 1434 | ||
| 4212 |
visualp
|
14년 전 | 2014 | |
| 4211 | 14년 전 | 1558 | ||
| 4210 | 14년 전 | 826 | ||
| 4209 |
|
14년 전 | 2053 | |
| 4208 | 14년 전 | 2054 | ||
| 4207 | 14년 전 | 3004 | ||
| 4206 | 14년 전 | 1101 | ||
| 4205 |
SGFlash
|
14년 전 | 1287 | |
| 4204 | 14년 전 | 816 | ||
| 4203 | 14년 전 | 896 | ||
| 4202 | 14년 전 | 2116 | ||
| 4201 | 14년 전 | 910 | ||
| 4200 | 14년 전 | 2381 | ||
| 4199 | 14년 전 | 631 | ||
| 4198 |
visualp
|
14년 전 | 3509 | |
| 4197 |
visualp
|
14년 전 | 732 | |
| 4196 | 14년 전 | 2091 | ||
| 4195 |
미사카10777호
|
14년 전 | 3470 | |
| 4194 |
senseme
|
14년 전 | 777 | |
| 4193 | 14년 전 | 955 | ||
| 4192 | 14년 전 | 1308 | ||
| 4191 |
DreamT
|
14년 전 | 802 | |
| 4190 |
onlymilk74
|
14년 전 | 1316 | |
| 4189 | 14년 전 | 1251 | ||
| 4188 | 14년 전 | 1374 | ||
| 4187 | 14년 전 | 1106 | ||
| 4186 |
|
14년 전 | 734 | |
| 4185 | 14년 전 | 1196 | ||
| 4184 | 14년 전 | 1175 | ||
| 4183 |
visualp
|
14년 전 | 1049 | |
| 4182 |
visualp
|
14년 전 | 627 | |
| 4181 |
|
14년 전 | 622 | |
| 4180 |
techer
|
14년 전 | 953 | |
| 4179 | 14년 전 | 526 | ||
| 4178 | 14년 전 | 3080 | ||
| 4177 | 14년 전 | 600 | ||
| 4176 | 14년 전 | 947 | ||
| 4175 | 14년 전 | 599 | ||
| 4174 |
|
14년 전 | 632 | |
| 4173 |
|
14년 전 | 1860 | |
| 4172 |
|
14년 전 | 907 | |
| 4171 | 14년 전 | 1395 | ||
| 4170 | 14년 전 | 665 | ||
| 4169 | 14년 전 | 1293 | ||
| 4168 | 14년 전 | 1775 | ||
| 4167 | 14년 전 | 817 | ||
| 4166 | 14년 전 | 1324 | ||
| 4165 |
visualp
|
14년 전 | 814 | |
| 4164 | 14년 전 | 1178 | ||
| 4163 | 14년 전 | 2605 | ||
| 4162 | 14년 전 | 660 | ||
| 4161 |
onlymilk74
|
14년 전 | 4797 | |
| 4160 | 14년 전 | 685 | ||
| 4159 | 14년 전 | 871 | ||
| 4158 | 14년 전 | 711 | ||
| 4157 | 14년 전 | 3391 | ||
| 4156 | 14년 전 | 505 | ||
| 4155 | 14년 전 | 840 | ||
| 4154 | 14년 전 | 1140 | ||
| 4153 | 14년 전 | 1142 | ||
| 4152 | 14년 전 | 636 | ||
| 4151 | 14년 전 | 1247 | ||
| 4150 | 14년 전 | 724 | ||
| 4149 | 14년 전 | 627 | ||
| 4148 |
쉽다zzz
|
14년 전 | 2261 | |
| 4147 | 14년 전 | 954 | ||
| 4146 | 14년 전 | 579 | ||
| 4145 | 14년 전 | 579 | ||
| 4144 | 14년 전 | 1617 | ||
| 4143 | 14년 전 | 771 | ||
| 4142 | 14년 전 | 1178 | ||
| 4141 | 14년 전 | 1166 | ||
| 4140 |
|
14년 전 | 1774 | |
| 4139 |
visualp
|
14년 전 | 1849 | |
| 4138 |
visualp
|
14년 전 | 1115 | |
| 4137 | 14년 전 | 769 | ||
| 4136 | 14년 전 | 710 | ||
| 4135 | 14년 전 | 961 | ||
| 4134 | 14년 전 | 1118 | ||
| 4133 | 14년 전 | 2532 | ||
| 4132 | 14년 전 | 578 | ||
| 4131 | 14년 전 | 896 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기