Friday, August 12, 2005

Flash Lite [11] setProperty

Flash Lite 1.1目前只支援Movie Clip的Instant name,
例如場景上有一個Instant Name為Cube的Movie Clip,
利用setProperty控制向上移動,要在Button上寫,
on (keyPress "<Up>") {
setProperty("/cube", _y, _root.cube._y-10);
}
可以用的Property有

_alpha
_currentframe
_droptarget
_focusrect
_framesloaded
_height
_name
_rotation
_soundbuftime
_target
_totalframes
_url
_visible
_width
_x
_xscale
_y
_yscale

2 comments:

Anonymous said...

可以用movieclip.property = n來控制的, 不用set/getProperty, _root, _parent也可以用

Carol said...

感謝luar的資訊,試了一下~
所以說也可以用點語法表示囉~~ ^^
_root.cube._y=_root.cube._y-10