MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 906

Director scripting reference
Table of Contents

Advertisement

Example
This sprite script uses the
can be set to a specific point. It then sets the origin points.
-- Lingo syntax
property spriteNum
on beginSprite me
sprite(spriteNum).scaleMode = #showAll
sprite(spriteNum).originMode = #point
sprite(spriteNum).originPoint = point(100, 80)
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).scaleMode = symbol("showAll");
sprite(this.spriteNum).originMode = symbol("point");
sprite(this.spriteNum).originPoint = point(100, 80);
}
See also
originH, originV,
originV
Usage
-- Lingo syntax
memberOrSpriteObjRef.originv
// JavaScript syntax
memberOrSpriteObjRef.originV;
Description
Cast member and sprite property; controls the vertical coordinate of a Flash movie or vector
shape's origin point around which scaling and rotation occurs, in pixels. The value can be a
floating-point value.
The origin point can be set with floating-point precision using the separate
properties, or it can be set with integer precision using the single
You can set the
originV
This property can be tested and set. The default value is 0.
Note: This property must be set to the default value if the scaleMode property is set to #autoSize, or
the sprite does not display correctly.
906
Chapter 14: Properties
property to set up a Flash movie sprite so its origin point
originMode
scaleMode
property only if the
originPoint
property is set to
originMode
and
originH
originV
property.
.
#point

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents