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

發表留言

Trackback this post  |  Subscribe to the comments via RSS Feed