User Guide
737
Example
The first line of this example sets the transform of the model ModCylinder to the identity
transform. The next two lines show that the z-axis of ModCylinder is the vector ( 0.0000, 0.0000,
1.0000). This means that the z-axis of ModCylinder is aligned with the z-axis of the world. The
next line rotates ModCylinder 90° around its y-axis. This rotates the axes of ModCylinder as well.
The last two lines show that the z-axis of ModCylinder is now the vector ( 1.0000, 0.0000, 0.0000
). This means that the z-axis of ModCylinder now is aligned with the x-axis of the world.
member("Engine").model("ModCylinder").transform.identity()
put member("Engine").model("ModCylinder").transform.zAxis
-- vector( 1.0000, 0.0000, 0.0000 )
member("Engine").model("ModCylinder").rotate(0, 90, 0)
put member("Engine").model("ModCylinder").transform.zAxis
-- vector( 0.0000, 0.0000, -1.0000 )
zoomBox
Syntax
zoomBox startSprite, endSprite {,delayTicks}
Description
Command; creates a zooming effect, like the expanding windows in the Macintosh Finder. The
zoom effect starts at the bounding rectangle of
startSprite and finishes at the bounding
rectangle of
endSprite. 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.
The
delayTicks variable is 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:
zoomBox 7, 3
on zoomWindow
Syntax
on zoomWindow
statement(s)
end
Description
System message and event handler; contains statements that execute whenever a movie running as
a movie in a window (MIAW) is resized. This happens when the user clicks the Minimize or
Maximize button (Windows) or the Zoom button (Macintosh). The operating system determines
the dimensions after resizing the window.
An
on zoomWindow event handler is a good place to put Lingo that rearranges sprites when
window dimensions change.