swing()
Usage
-- Lingo syntax
spriteObjRef.swing(pan, tilt, fieldOfView, speedToSwing)
// JavaScript syntax
spriteObjRef.swing(pan, tilt, fieldOfView, speedToSwing);
Description
QuickTime VR sprite function; swings a QuickTime 3 sprite containing a VR Pano around to
the new view settings. The swing is a smooth "camera dolly" effect.
whichQTVRSprite
The function returns immediately, but the sprite continues to change view until it reaches
the final view. The duration required to change to the final settings varies depending on
machine type, size of the sprite rectangle, color depth of the screen, and other typical
performance constraints.
To check if the swing has finished, check if the
final value.
Parameters
Required. Specifies the new pan position, in degrees.
pan
Required. Specifies the new tilt, in degrees.
tilt
Required. Specifies the new field of view, in degrees.
fieldOfView
Required. Specifies the rate at which the swing should take place. Valid values
speedToSwing
range from 1 (slow) to 10 (fast).
Example
This very gradually adjusts the view of QTVR sprite 1 to a pan position of 300°, a tilt of -15°, and
a field of view of 40°:
-- Lingo syntax
sprite(1).swing(300, -15, 40, 1)
// JavaScript syntax
sprite(1).swing(300, -15, 40, 1);
See also
pan (QTVR property)
558
Chapter 12: Methods
is the sprite number of the sprite with the QuickTime VR member.
property of the sprite has arrived at the
pan
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