221
This property can be tested and set.
Example
The following frame script checks to see whether the buttons in a Flash movie sprite are currently
enabled, and if so, sets
eventPassMode
to
#passNotButton
; if the buttons are disabled, the script
sets
eventPassMode
to
#passAlways
. The effect of this script is the following:
•
Mouse events on nonbutton objects always pass to sprite scripts.
•
Mouse events on button objects are passed to sprite scripts when the buttons are disabled.
When the buttons are enabled, mouse events on buttons are stopped.
on enterFrame
if sprite(5).buttonsEnabled = TRUE then
sprite(5).eventPassMode= #passNotButton
else
sprite(5).eventPassMode = #passAlways
end if
end
exit
Syntax
exit
Description
Keyword; instructs Lingo to leave a handler and return to where the handler was called. If the
handler is nested within another handler, Lingo returns to the main handler.
Example
The first statement of this script checks whether the monitor is set to black and white and then
exits if it is:
on setColors
if the colorDepth = 1 then exit
sprite(1).foreColor = 35
end
See also
abort
,
halt
,
quit
,
pass
,
return (keyword)
on exitFrame
Syntax
on exitFrame
statement
(
s
)
end
Description
System message and event handler; contains statements that run each time the playhead exits the
frame that the
on exitFrame
handler is attached to. The
on exitFrame
handler is a useful place
for Lingo that resets conditions that are no longer appropriate after leaving the frame.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...