[hintpopup]http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html[/hintpopup]
[샘플]<script type=”text/javascript”>
<!–
function HidePen()
{
var VISIBILITY = 7;
var movie = documnet.getElementByid(“movie”);
try
{
movie.TSetProperty(“/MovieClip”, VISIBILITY , 0);
}
catch(e)
{
alert(e);
}
}
//–>
</script>
…
<OBJECT id=”movie” ….></OBJECT>
TGetProperty
, TSetProperty
로 플래시 제어시 참고Property | Property number | Constant | Get | Set |
X POSITION (_x) | 0 | X_POS | ÷ | ÷ |
Y POSITION (_y) | 1 | Y_POS | ÷ | ÷ |
X SCALE | 2 | X_SCALE | ÷ | ÷ |
Y SCALE | 3 | Y_SCALE | ÷ | ÷ |
CURRENTFRAME | 4 | CURRENT_FRAME | ÷ | |
TOTALFRAMES | 5 | TOTAL_FRAMES | ÷ | |
ALPHA | 6 | ALPHA | ÷ | ÷ |
VISIBILITY | 7 | VISIBLE | ÷ | ÷ |
WIDTH | 8 | WIDTH | ÷ | |
HEIGHT | 9 | HEIGHT | ÷ | |
ROTATION | 10 | ROTATE | ÷ | ÷ |
TARGET | 11 | TARGET | ÷ | |
FRAMESLOADED | 12 | FRAMES_LOADED | ÷ | |
NAME | 13 | NAME | ÷ | ÷ |
DROPTARGET | 14 | DROP_TARGET | ÷ | |
URL(_url) | 15 | URL | ÷ |
The following table shows global properties:
Global Property | Property number | Constant | Get | Set |
HIGHQUALITY | 16 | HIGH_QUALITY | ÷ | ÷ |
FOCUSRECT | 17 | FOCUS_RECT | ÷ | ÷ |
SOUNDBUFTIME | 18 | SOUND_BUF_TIME | ÷ | ÷ |
<!–
function HidePen()
{
var VISIBILITY = 7;
var movie = documnet.getElementByid(“movie”);
try
{
movie.TSetProperty(“/MovieClip”, VISIBILITY , 0);
}
catch(e)
{
alert(e);
}
}
//–>
</script>
…
<OBJECT id=”movie” ….></OBJECT>
참조: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_04.html#69558