Script


Script

Script tab


Script

Objects in SVG files can have associated scripts that are triggered when a specific event related to the object occurs, such as a mouse click. With the Script tab of the Interactivity window, you can easily specify scripts and events for any object in a document you plan to save to SVG format.

Script tab

The Script tab lets you specify scripts to be triggered by events that occur in relation to an object. You can specify multiple events and scripts for each object.

Double-clicking an item in the list opens the Script Editor dialog box, where you can change the event and/or the script that is triggered by it.

Namo WebCanvas wc action Script

Namo WebCanvas reference Script If a script has more than one line in it, end each line with a semicolon (;).

  • Sub menu Namo WebCanvas basic layer overview 1 Script

Edit Script

Edits the selected script in the Script Editor dialog box.

Add Script

Adds a new script. Select the event in the Script Editor dialog box and type the script.

Remove Script

Removes the selected script.

Specify Script Files

Specifies one or more JavaScript (*.js) files.

  • Buttons

Namo WebCanvas icon lib add Script

 

Add Script
Adds a script. Clicking this button opens the Script Editor dialog box.

Namo WebCanvas icon property effect edit Script

Edit Script
Edits the selected script. Clicking this button opens the Script Editor dialog box.

Namo WebCanvas icon lib delete Script

Remove Script
Removes the selected script.

Namo WebCanvas icon property interactivity script Script

Specify Script Files
Specifies one or more JavaScript (*.js) files. Clicking this button opens the Script Editor dialog box.

Namo WebCanvas reference Script Scripts on a Namo WebCanvas object only work if you save the file to SVG format.

Namo WebCanvas top Script

Script