User Guide

379
This handler regularly cycles a sprite’s cast member among a number of bitmaps:
on exitFrame
global gCounter
-- These are sample values for bitmap cast member numbers
theBitmaps = [2,3,4,5,6,7]
-- Specify which sprite channel is affected
theChannel = 1
-- This cycles through the list
gCounter = 1 + (gCounter mod theBitmaps.count)
sprite(theChannel).memberNum = theBitmaps[gCounter]
go the frame
end
modal
Syntax
window "window".modal
the modal of window "window"
Description
Window property; specifies whether movies can respond to events that occur outside the window
specified by
window.
When the modal window property is TRUE, movies cannot respond to events outside
the window.
When the modal window property is FALSE, movies can respond to events outside the window.
Setting the modal window property to TRUE lets you make a specific movie in a window the only
movie that the user can interact with.
Be aware that this property works even in the authoring environment. If you set the
modal
window property to
TRUE, you will not be able to interact with the Director windows either.
You can always close a window that is modal by using Control+Alt+period (Windows) or
Command+period (Macintosh).
Example
This statement lets movies respond to events outside of the Tool Panel window:
window("Tool Panel").modal = FALSE
mode (emitter)
Syntax
member(whichCastmember).modelResource(whichModelResource).\
emitter.mode
Description
3D property; when used with a model resource whose type is #particle, allows you to both get
and set the
mode property of the resources particle emitter.