![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 174](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720174.webp)
174
Chapter 10: Events and Messages
on getBehaviorTooltip
Usage
-- Lingo syntax
on getBehaviorTooltip
statement(s)
end
// JavaScript syntax
function getBehaviorTooltip() {
statement(s);
}
Description
System message and event handler; contains Lingo that returns the string that appears in a tooltip
for a script in the Library palette.
Director sends the
getBehaviorTooltip
message to the script when the cursor stops over it in
the Library palette. Place the
on getBehaviorTooltip
handler within the behavior.
The use of the handler is optional. If no handler is supplied, the cast member name appears in
the tooltip.
The handler can contain embedded Return characters for formatting multiple-line descriptions.
Example
This statement displays “Jigsaw puzzle piece” in the description pane:
-- Lingo syntax
on getBehaviorTooltip
return "Jigsaw puzzle piece"
end
// JavaScript syntax
function getBehaviorTooltip() {
return "Jigsaw puzzle piece";
}
See also
on getPropertyDescriptionList
,
on getBehaviorDescription
,
on runPropertyDialog
on getPropertyDescriptionList
Usage
-- Lingo syntax
on getPropertyDescriptionList
statement(s)
end
// JavaScript syntax
function getPropertyDescriptionList() {
statement(s);
}
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...