|a short-list of visible read/write properties
Properties describe -- and can be used to control -- various features of "movie clips".
You can think of them as VARIABLES with a predetermined physical meaning.
Note: only Instances can be controlled with ActionScript; shapes (drawn directly on stage) cannot.
|visualization: controlling movie clip instance properties -- source file: properties.fla|
PROPERTY REFERENCE VALUES MEANING
Zero, the left side of the stage.
Horizontal position of a movie clip, in pixels. Measured from the left side of the clip's _parent's stage to the registration point of the movie clip.
Zero, the top of the stage.
Vertical position, in pixels
100% of original horizonal scale.
Horizontal scaling of an instance relative to the original symbol placed on stage.
100% of original vertical scale.
Vertical scaling of an instance relative to the original symbol.
completely relative, that is, once changed, there is no stored value representing the original width of the element The width, in pixels, of the space occupied by the movie clip.
completely open The height, in pixels, of the space occupied by the movie clip.
-180 to 0 to 180
0 being the original rotation of the instance.
note that -180 and 180 are, visually, the same degree of rotation!
Degrees of rotation.
note: Yes, you can set _rotation to 360; _rotation can be set to any number, but one complete revolution looks the same as two, or three, or seventeen ...
0 to 100
0 being completely transparent; 100 being completely opaque
Caution: transparency effects are memory hogs.
falsebeing invisible, 1 or
Falseare Boolean values.
When a clip's _visible property is set to
false, buttons inside the clip will no longer detect events.
The vertical distance between the mouse and the registration point of a movie clip.
To find the position of the mouse relative to the top of the main stage, use:
The horizontal distance between the mouse and the registration point of a movie clip.
To find the position of the mouse relative to the left side of the main stage, use: