Flash Lite 2.x ActionScript Language Reference |
|
|
|
| ActionScript language elements > Global Functions > getProperty function | |||
getProperty(my_mc:Object, property:Object) : Object
Deprecated since Flash Player 5. This function was deprecated in favor of the dot syntax, which was introduced in Flash Player 5.
Returns the value of the specified property for the movie clip my_mc.
my_mc:Object - The instance name of a movie clip for which the property is being retrieved.
property:Object - A property of a movie clip.
Object - The value of the specified property.
The following example creates a new movie clip someClip_mc and shows the alpha value (_alpha) for the movie clip someClip_mc in the Output panel:
this.createEmptyMovieClip("someClip_mc", 999);
trace("The alpha of "+getProperty(someClip_mc, _name)+" is: "+getProperty(someClip_mc, _alpha));
|
|
|
|