zoomBox
593
Parameters
xtraNameOrNum
Required. A string that specifies the name of the Xtra to return, or an integer
that specifies the index position of the Xtra to return. String names are not case sensitive.
Example
This statement sets the variable
myNetLingo
to the NetLingo Xtra extension:
-- Lingo syntax
myNetLingo = xtra("netlingo")
// JavaScript syntax
var myNetLingo = xtra("netlingo");
zoomBox
Usage
-- Lingo syntax
zoomBox
startSprite
,
endSprite
{,
delayTicks
}
// JavaScript syntax
zoomBox(
startSprite
,
endSprite
{,
delayTicks
}); // not yet documented
Description
Command; creates a zooming effect, like the expanding windows in the Macintosh Finder. The
zoom effect starts at a bounding rectangle of a specified starting sprite and finishes at the
bounding rectangle of a specified ending sprite. The
zoomBox
command uses the following logic
when executing:
1
Look for
endSprite
in the current frame: otherwise,
2
Look for
endSprite
in the next frame.
Note, however, that the
zoomBox
command does not work for
endSprite
if it is in the same
channel as
startSprite
.
Parameters
startSprite
Required. Specifies the starting sprite.
endSprite
Required. Specifies the ending sprite.
delayTicks
Optional. Specifies the delay in ticks between each movement of the zoom
rectangles. If
delayTicks
is not specified, the delay is 1.
Example
This statement creates a zoom effect between sprites 7 and 3:
-- Lingo syntax
zoomBox 7, 3
// JavaScript syntax
zoomBox(7, 3); // not yet documented
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...