Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > _yscale | |||
Flash Lite 1.0.
my_mc:_yscale
Property; sets the vertical scale (percentage) of the movie clip, as applied from the registration point of the movie clip. The default registration point is (0, 0).
Scaling the local coordinate system affects the _x and _y property settings, which are defined in pixels. For example, if the parent movie clip is scaled to 50%, setting the _y property moves an object in the movie clip by half the number of pixels as it would if the movie were set at 100%.
The following example changes the vertical scale of the my_mc movie clip to 10% when the user presses the 1 key:
on(keyPress "1") {
my_mc:_yscale = 10;
}
|
|
|
|