Behavior Editor

To write or edit your scripts, you can add your JavaScript code (ECMAScript) in the Behavior Editor.

Each number identifies a specific area in the Behavior Editor. Areas are described in the following table.

Number Feature Description
1 Script List

Lets you create and manage scripts.

Scripts are saved when you click outside the editor to change the focus.

2 Editor Defines the area where you edit your code.
3 Menu Contains the following functionality:
  • Maximize: Enlarges or reduces your window.
  • Search: Lets you search and replace items in the editor.
  • Command Palette: Lets you access internal commands available in the editor. Shortcuts are also provided.
  • Open JavaScript API Guide: Opens the JavaScript API guide in a web browser.
4 Minimap Provides an overview of your code.
5 Capacities Lets you create and edit your own capacities and properties.