MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 905

Director scripting reference
Table of Contents

Advertisement

Example
This sprite script uses the
can be set to a specific point. It then sets the horizontal and vertical origin points.
-- Lingo syntax
property spriteNum
on beginSprite me
sprite(spriteNum).originMode = #point
sprite(spriteNum).originH = 100
sprite(spriteNum).originV = 80
end
// JavaScript syntax
function beginSprite() {
sprite(this.spriteNum).originMode = symbol("point");
sprite(this.spriteNum).originH = 100;
sprite(this.spriteNum).originV = 80;
}
See also
originH, originV, originPoint,
originPoint
Usage
-- Lingo syntax
memberOrSpriteObjRef.originPoint
// JavaScript syntax
memberOrSpriteObjRef.originPoint;
Description
Cast member and sprite property; controls the origin point around which scaling and rotation
occurs of a Flash movie or vector shape.
The
originPoint
Setting a Flash movie or vector shape's origin point with the
setting the
originH
property to point(50,75) is the same as setting the
property to 75.
Director point values specified for the
whereas
originH
the
originPoint
the
and
originH
and convenience.
You can set the
originPoint
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 will not display correctly.
property to set up a Flash movie sprite so its origin point
originMode
scaleMode
property is specified as a Director point value: for example, point(100,200).
and
properties separately. For example, setting the
originV
originPoint
and
can be specified with floating-point numbers. When you test
originV
property, the point values are truncated to integers. As a rule of thumb, use
properties for precision; use the
originV
property only if the
originPoint
property to 50 and the
originH
property are restricted to integers,
originPoint
property is set to
originMode
property is the same as
originPoint
originV
property for speed
.
#point
originPoint
905

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