on getBehaviorDescription
173
This handler branches the playhead to a specified frame if the value in the global variable
vTotal
exceeds 1000 when the playhead exits the frame:
// JavaScript syntax
function exitFrame() {
if (_global.vTotal > 1000) {
_movie.go("Finished");
}
}
See also
on enterFrame
on getBehaviorDescription
Usage
-- Lingo syntax
on getBehaviorDescription
statement(s)
end
// JavaScript syntax
function getBehaviorDescription() {
statement(s);
}
Description
System message and event handler; contains Lingo that returns the string that appears in a
behavior’s description pane in the Behavior Inspector when the behavior is selected.
The description string is optional.
Director sends the
getBehaviorDescription
message to the behaviors attached to a sprite when
the Behavior inspector opens. Place the
on getBehaviorDescription
handler within a behavior.
The handler can contain embedded Return characters for formatting multiple-line descriptions.
Example
This statement displays “Vertical Multiline textField Scrollbar” in the description pane:
-- Lingo syntax
on getBehaviorDescription
return "Vertical Multiline textField Scrollbar"
end
// JavaScript syntax
function getBehaviorDescription() {
return "Vertical Multiline textField Scrollbar";
}
See also
on getPropertyDescriptionList
,
on getBehaviorTooltip
,
on runPropertyDialog
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...