[설명 및 사용방법]
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년 전
감사합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3530 | 14년 전 | 894 | ||
| 3529 | 14년 전 | 1121 | ||
| 3528 |
|
14년 전 | 1334 | |
| 3527 | 14년 전 | 1182 | ||
| 3526 |
|
14년 전 | 882 | |
| 3525 | 14년 전 | 1174 | ||
| 3524 | 14년 전 | 1397 | ||
| 3523 | 14년 전 | 1352 | ||
| 3522 | 14년 전 | 906 | ||
| 3521 | 14년 전 | 2091 | ||
| 3520 |
|
14년 전 | 426 | |
| 3519 | 14년 전 | 1050 | ||
| 3518 | 14년 전 | 896 | ||
| 3517 |
다케미카코
|
14년 전 | 739 | |
| 3516 |
|
14년 전 | 1232 | |
| 3515 |
NS미디어
|
14년 전 | 1664 | |
| 3514 | 14년 전 | 1027 | ||
| 3513 |
FreeZone
|
14년 전 | 810 | |
| 3512 |
|
14년 전 | 810 | |
| 3511 | 14년 전 | 1084 | ||
| 3510 | 14년 전 | 1376 | ||
| 3509 | 14년 전 | 1475 | ||
| 3508 | 14년 전 | 542 | ||
| 3507 | 14년 전 | 1085 | ||
| 3506 |
|
14년 전 | 978 | |
| 3505 | 14년 전 | 1006 | ||
| 3504 | 14년 전 | 1724 | ||
| 3503 |
letsgolee
|
14년 전 | 1494 | |
| 3502 | 14년 전 | 1371 | ||
| 3501 | 14년 전 | 1134 | ||
| 3500 | 14년 전 | 1147 | ||
| 3499 | 14년 전 | 1754 | ||
| 3498 |
리눅스초보100
|
14년 전 | 787 | |
| 3497 |
네비플러스
|
14년 전 | 568 | |
| 3496 |
도와주세요
|
14년 전 | 835 | |
| 3495 | 14년 전 | 809 | ||
| 3494 | 14년 전 | 1312 | ||
| 3493 | 14년 전 | 1567 | ||
| 3492 | 14년 전 | 1328 | ||
| 3491 | 14년 전 | 945 | ||
| 3490 | 14년 전 | 1008 | ||
| 3489 | 14년 전 | 1097 | ||
| 3488 | 14년 전 | 2838 | ||
| 3487 |
JMoon
|
14년 전 | 1023 | |
| 3486 | 14년 전 | 1691 | ||
| 3485 | 14년 전 | 1306 | ||
| 3484 | 14년 전 | 936 | ||
| 3483 | 14년 전 | 2203 | ||
| 3482 |
photolate
|
14년 전 | 2648 | |
| 3481 | 14년 전 | 752 | ||
| 3480 | 14년 전 | 997 | ||
| 3479 | 14년 전 | 1885 | ||
| 3478 |
|
14년 전 | 2267 | |
| 3477 | 14년 전 | 1325 | ||
| 3476 | 14년 전 | 1460 | ||
| 3475 | 14년 전 | 796 | ||
| 3474 | 14년 전 | 1113 | ||
| 3473 | 14년 전 | 1114 | ||
| 3472 | 14년 전 | 1875 | ||
| 3471 | 14년 전 | 1140 | ||
| 3470 | 14년 전 | 811 | ||
| 3469 | 14년 전 | 907 | ||
| 3468 | 14년 전 | 217 | ||
| 3467 | 14년 전 | 960 | ||
| 3466 | 14년 전 | 871 | ||
| 3465 | 14년 전 | 885 | ||
| 3464 |
스카이워커
|
14년 전 | 1423 | |
| 3463 | 14년 전 | 2306 | ||
| 3462 | 14년 전 | 1359 | ||
| 3461 | 14년 전 | 1132 | ||
| 3460 |
New악마
|
14년 전 | 1519 | |
| 3459 | 14년 전 | 767 | ||
| 3458 | 14년 전 | 768 | ||
| 3457 | 14년 전 | 1028 | ||
| 3456 | 14년 전 | 1254 | ||
| 3455 | 14년 전 | 888 | ||
| 3454 | 14년 전 | 1173 | ||
| 3453 | 14년 전 | 1800 | ||
| 3452 | 14년 전 | 782 | ||
| 3451 | 14년 전 | 1114 | ||
| 3450 | 14년 전 | 1133 | ||
| 3449 | 14년 전 | 842 | ||
| 3448 | 14년 전 | 855 | ||
| 3447 | 14년 전 | 1240 | ||
| 3446 | 14년 전 | 1721 | ||
| 3445 | 14년 전 | 1626 | ||
| 3444 | 14년 전 | 1530 | ||
| 3443 |
|
14년 전 | 904 | |
| 3442 | 14년 전 | 1102 | ||
| 3441 | 14년 전 | 937 | ||
| 3440 |
바인플러스
|
14년 전 | 824 | |
| 3439 | 14년 전 | 2016 | ||
| 3438 | 14년 전 | 1285 | ||
| 3437 |
New악마
|
14년 전 | 1225 | |
| 3436 |
카프카07
|
14년 전 | 1282 | |
| 3435 |
|
14년 전 | 1503 | |
| 3434 |
|
14년 전 | 869 | |
| 3433 | 14년 전 | 1647 | ||
| 3432 | 14년 전 | 3944 | ||
| 3431 | 14년 전 | 1877 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기