One significant difference between the
always scales from the center of the sprite's bounding rectangle, whereas
determined by the Flash movie's
This property can be tested and set.
Note: This property must be set to the default value if the scaleMode property is set to #autoSize, or
the sprite will not display correctly.
Example
This sprite script sets up a Flash movie sprite and doubles its view scale:
-- Lingo syntax
property spriteNum
on beginSprite me
sprite(spriteNum).viewScale = 200
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).viewScale = 200;
}
See also
scaleMode, viewV, viewPoint,
viewV
Usage
-- Lingo syntax
memberOrSpriteObjRef.viewV
// JavaScript syntax
memberOrSpriteObjRef.viewV;
Description
Cast member and sprite property; controls the vertical coordinate of a Flash movie and vector
shape's view point, specified in pixel units. The values can be floating-point numbers. The default
value is 0.
A Flash movie's view point is set relative to its origin point.
Setting a positive value for
shifts the movie down. Therefore, changing the
the movie or even of removing the movie from view entirely.
This property can be tested and set.
Note: This property must be set to the default value if the scaleMode property is set to #autoSize, or
the sprite will not display correctly.
1084
Chapter 14: Properties
viewScale
property.
originMode
viewH
shifts the movie up inside the sprite; setting a negative value
viewV
viewV
and
properties is that
scale
scale
property can have the effect of cropping
viewScale
scales from a point
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers