MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 164

Director scripting reference
Table of Contents

Advertisement

Example
This handler plays a sound each time the user sends the projector to the background:
-- Lingo syntax
on deactivateApplication
sound(1).queue(member("closeSound"))
sound(1).play()
end
// JavaScript syntax
function deactivateApplication() {
sound(1).queue(member("closeSound"));
sound(1).play();
}
See also
add (3D
texture), activeCastLib,
on deactivateWindow
Usage
-- Lingo syntax
on deactivateWindow
statement(s)
end
// JavaScript syntax
function deactivateWindow() {
statement(s);
}
Description
System message and event handler; contains statements that run when the window that the movie
is playing in is deactivated. The
want executed whenever a window is deactivated.
Example
This handler plays the sound Snore when the window that the movie is playing in is deactivated:
-- Lingo syntax
on deactivateWindow
sound(2).play(member("Snore"))
end
// JavaScript syntax
function deactivateWindow() {
sound(2).play(member("Snore"));
}
164
Chapter 10: Events and Messages
on deactivateWindow
event handler is a good place for Lingo that you
on deactivate

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents