getProperty()
Availability
Flash Player 4.
Usage
getProperty(my_mc:Object, property:Object) : Object
Parameters
The instance name of a movie clip for which the property is being retrieved.
my_mc
A property of a movie clip.
property
Returns
The value of the specified property.
Description
Function; returns the value of the specified property for the movie clip
Example
The following example creates a new movie clip
(
) for the movie clip
_alpha
this.createEmptyMovieClip("someClip_mc", 999);
trace("The alpha of "+getProperty(someClip_mc, _name)+" is:
"+getProperty(someClip_mc, _alpha));
someClip_mc
in the Output panel:
someClip_mc
CHAPTER 7
ActionScript for Flash
.
my_mc
and shows the alpha value
getProperty()
533
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?