originV

Syntax: the originV of sprite whichFlashSprite
the originV of member whichFlashMember
Type: Cast member property; sprite property
Description: This property controls the vertical coordinate of a Flash movie's origin point. You set the originV property in Flash movie pixel units; it can have a floating-point value.
The origin point is the coordinate in a Flash movie around which scaling and rotation occurs. The origin point can be set with floating-point precision using the separate originH and originV properties, or it can be set with integer precision using the single originPoint property.
You can set the originV property only if the originMode property is set to #point.
The originV property can be tested and set. The default setting is 0.
Example: This sprite script uses the originMode property to set up a Flash movie sprite so it's origin point can be set to a specific point. It then sets the horizontal and vertical origin points.
on beginSprite me
	set the originMode of sprite the spriteNum of me = #point
	set the originH of sprite the spriteNum of me = 100
	set the originV of sprite the spriteNum of me = 80
end

Related Lingo: originH property, originMode property, originPoint property

Previous | Next