MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 172

Director scripting reference
Table of Contents

Advertisement

on exitFrame
Usage
-- Lingo syntax
on exitFrame
statement(s)
end
// JavaScript syntax
function exitFrame() {
statement(s);
}
Description
System message and event handler; contains statements that run each time the playhead exits the
frame that the
on exitFrame
for Lingo that resets conditions that are no longer appropriate after leaving the frame.
Place
on exitFrame
To assign the handler to an individual sprite, put the handler in a behavior attached to
the sprite.
To assign the handler to an individual frame, put the handler in the frame script.
To assign the handler to every frame unless explicitly instructed otherwise, put the handler in a
movie script. The
unless the frame script has its own
on exitFrame
movie script.
This event is passed the sprite script or frame script reference
order of frame events is
Example
This handler turns off all puppet conditions when the playhead exits the frame:
-- Lingo syntax
on exitFrame me
repeat with i = 48 down to 1
sprite(i).scripted = FALSE
end repeat
end
// JavaScript syntax
function exitFrame() {
for (i=48; i>=1; i--);
sprite(i).scripted = false;
}
}
172
Chapter 10: Events and Messages
handler is attached to. The
handlers in behavior, frame, or movie scripts, as follows:
handler then executes every time the playhead exits the frame
on exitFrame
on exitFrame
handler, the
on exitFrame
,
prepareFrame
on exitFrame
handler. When the frame script has its own
handler in the frame script overrides the one in the
me
, and
enterFrame
exitFrame
handler is a useful place
if it is used in a behavior. The
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents