User Guide

Table Of Contents
60 Flash Lite Properties
Example
The following example changes the horizontal scale of the my_mc movie clip when the user
presses the 7 key:
on(keyPress "7") {
my_mc:_xscale = 10;
}
See also
_x, _y, _yscale
_y
Availability
Flash Lite 1.0.
Usage
my_mc:_y
Description
Property; an integer that sets the y coordinate of a movie clip (represented here by my_mc),
relative to the local coordinates of the parent movie clip. If a movie clip is in the main
Timeline, its coordinate system refers to the upper-left corner of the Stage as (0, 0).
If the move clip is inside another movie clip that has transformations, the movie clip is in the
local coordinate system of the enclosing movie clip. For example, if a movie clip is rotated 90
degrees counterclockwise, the child movie clips inherit a coordinate system that is rotated 90
degrees counterclockwise. The movie clips coordinates refer to the registration point position.
Example
The following code sets the y coordinates of the my_mc movie clip 10 pixels below the (0, 0)
coordinate of is parent clip when the user presses the 1 key:
on(keyPress "1") {
my_mc:_y = 10;
}
See also
_x, _xscale, _yscale