Flash Btn getproperty

16 十一月, 2009 at 3:09 下午 發表留言

i tried to create a btn and wanna to get the btn’s name(instant) and pass to funciton

getProperty ( target, property );

Where target is the instance name of the object within the Flash movie which we are interested in examining, and property indicates the property we wish to evaluate. The target is generally the path to a movie clip (see the Paths tutorial for more on paths).

This table outlines the code you can substitute in for the property attribute, and what it will get you.

getProperty ( target, _x ); The X position (in pixels) of the target clip.
getProperty ( target, _y ); The Y position (in pixels) of the target clip.
getProperty ( target, _width ); The width (in pixels) of the target clip.
getProperty ( target, _height ); The height (in pixels) of the target clip.
getProperty ( target, _rotation ); The rotation angle (in degrees) of the target clip.
getProperty ( target, _target ); The full path (from _root) to the target clip.
getProperty ( target, _name ); The instance name of the target clip.
getProperty ( target, _xscale ); The X scale proportion relative to the original clip size, (in percent) of the target clip.
getProperty ( target, _yscale ); The Y scale proportion relative to the original clip size, (in percent) of the target clip.
getProperty ( target, _alpha ); The alpha fade level (in percent) of the target clip.
getProperty ( target, _visible ); The visibility status (Boolean: True of False, 1 or 0) of the target clip.
getProperty ( target, _droptarget ); The instance name of the clip upon which a draggable clip is dropped.
getProperty ( target, _currentframe ); The frame at which the playhead currently rests in the target clip.
getProperty ( target, _totalframes ); The total number of frames in the target clip.
getProperty ( target, _framesloaded ); The number of frames currently loaded in the target clip.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

on (press) {
 getname = getProperty(store2,_name);
 loadXMLText(getname);
}

store2 is the btn’s instant name

Entry filed under: Flash, Multimedia. Tags: , , .

Flash Btn AddEventListener google analysis study (1) – gzip compression

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s

Trackback this post  |  Subscribe to the comments via RSS Feed


近期文章


%d 位部落客按了讚: