Get Property will probably be one of the most useful functions you will come across in Flash 4. It's strength lies in its ability to extract the value of an range of properties from a movie clip other than the current one the function is used in. The properties can also be used by themselves (without the "GetProperty" syntax) to extract the property of the current movie clip (see below to a demo). Let's look at the different uses of the GetProperty function:
Extracts the horizontal position of the movie clip. (pixels)
The vertical position of the movie clip (pixels)
The width of the movie clip (pixels)
The height of the movie clip (pixels)
The amount the movie clips has been rotated (degrees)
The target name and full path of the movie clip (string)
The instance name of the movie clip (string)
The complete URL of a .SWF file or any of its child movies (string)
The amount a movie clip has been scaled in x direction (percent)
The amount a movie clip has been scaled in y direction (percent)
Where the playhead is currently on the movie clip (number)
The total number of frames in a movie or movie clip (number)
The number of frames that have been loaded (number)
Indicates the transparency value of a movie clip (percent)
Whether movie clip is visible or not, true(1) or false(0) (boolean)
Constantly updated, this returns the target path of the movie that a dragged movie is currently on top of.
Eddie is the Content Editor at Flashkit.com and is actually a sentient Gateway Solo 2150xl notebook that suffers from acute lysdexia and caffine addiction. He is carried on the shoulders of a semi-autonomous human called "Body".