
Lingo Dictionary
57
actionsEnabled
Syntax
the actionsEnabled of sprite
whichFlashSprite
the actionsEnabled of member
whichFlashMember
sprite
whichFlashSprite
.actionenabled
member
whichFlashMember
.actionenabled
Description
Cast member property and sprite property; controls whether the actions in a Flash movie are
enabled (
TRUE,
default) or disabled (
FALSE
).
This property can be tested and set.
Example
This handler accepts a sprite reference as a parameter, and then toggles the sprite’s
actionsEnabled
property on or off.
Dot syntax:
on ToggleActions whichSprite
sprite (whichSprite).actionsEnabled = not sprite
(whichSprite).actionsEnabled
end
Verbose syntax:
on ToggleActions whichSprite
set the actionsEnabled of sprite whichSprite = not the actionsEnabled of
sprite whichSprite
end
activateApplication
Syntax
on activateApplication
Description
Built-in handler; runs when the projector is brought to the foreground. This handler is useful
when a projector runs in a window and the user can send it to the background to work with other
applications. When the projector is brought back to the foreground, this handler runs. Any
MIAWs running in the projector can also make use of this handler.
During authoring, this handler is called only if Animate in Background is turned on in
General Preferences.
On Windows, this handler is not called if the projector is merely minimized and no other
application is brought to the foreground.
Example
This handler plays a sound each time the user brings the projector back to the foreground:
on activateApplication
sound(1).queue(member("openSound"))
sound(1).play()
end
See also
deactivateApplication
,
activeCastLib
,
on deactivateWindow
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...