User Guide
434
nodeExitCallback
Syntax
sprite(whichQTVRSprite).nodeExitCallback
the nodeExitCallback of sprite whichQTVRSprite
Description
QuickTime VR sprite property; contains the name of the handler that runs when the QuickTime
VR movie is about to switch to a new active node on the Stage. The message has three arguments:
the
me parameter, the ID of the node that the movie is about to leave, and the ID of the node that
the movie is about to switch to.
The value that the handler returns determines whether the movie goes on to the next node. If the
handler returns
#continue, the QuickTime VR sprite continues with a normal node transition. If
the handler returns #cancel, the transition doesn’t occur and the movie stays in the original node.
Set this property to 0 to clear the callback.
The QuickTime VR sprite receives the message first.
To avoid a performance penalty, set a callback property only when necessary.
This property can be tested and set.
nodeType
Syntax
sprite(whichQTVRSprite).nodeType
nodeType of sprite whichQTVRSprite
Description
QuickTime VR sprite property; gives the type of node that is currently on the Stage for the
specified sprite. Possible values are
#object, #panorama, or #unknown. (#unknown is the value for
a sprite that isn’t a QuickTime VR sprite.)
This property can be tested but not set.
normalize
Syntax
normalize(vector)
vector.normalize()
Description
3D command; normalizes a vector by dividing the x, y, and z components by the vector’s
magnitude. Vectors that have been normalized always have a magnitude of 1.
Example
This statement shows the value of the vector MyVec before and after being normalized:
MyVec = vector(-209.9019, 1737.5126, 0.0000)
MyVec.normalize()
put MyVec
-- vector(-0.1199, 0.9928, 0.0000)
put MyVec.magnitude
-- 1.0000