View comments | RSS feed

getProperty function

getProperty(my_mc:Object, property:Object) : Object

Returns the value of the specified property for the movie clip my_mc.

Availability: ActionScript 1.0; Flash Player 4

Parameters

my_mc:Object - The instance name of a movie clip for which the property is being retrieved or a reference to a movie clip for which the property is being retrieved.

property - A property of a movie clip.

Returns

Object - The value of the specified property.

Example

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));

Version 8

Comments


shimi2 said on Sep 23, 2005 at 2:56 PM :
A clarification: the first parameter is typed Object because you can pass either a String that is the instance name of a movie clip, or you can pass a reference to a MovieClip object.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00001728.html