Xscale - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Description
Property; an integer that sets the x 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 movie 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 clip's coordinates refer to the registration
point position.
Example
The following example changes the horizontal position of the
movie clip when the user
my_mc
presses the 6 key:
on(keyPress "6") {
my_mc:_x = 10;
}
See also
,
,

_xscale

_y
_yscale
_xscale
Availability
Flash Lite 1.0.
Usage
my_mc:_xscale
Description
Property; sets the horizontal scale (
) of the movie clip, as applied from the
percentage
registration point of the movie clip. The default registration point is (0, 0).
Scaling the local coordinate system affects the
and
property settings, which are defined
_x
_y
in pixels. For example, if the parent movie clip is scaled to 50%, setting the
property moves
_x
an object in the movie clip by half of the number of pixels that it would if the movie were set
at 100%.
_xscale
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents