This handler branches the playhead to a specified frame if the value in the global variable
exceeds 1000 when the playhead exits the frame:
vTotal
// 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
the Behavior inspector opens. Place the
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,
getBehaviorDescription
on getBehaviorDescription
on
message to the behaviors attached to a sprite when
getBehaviorTooltip,
handler within a behavior.
on runPropertyDialog
on getBehaviorDescription
173
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