User Guide

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