Note:
As of November 2015, Edge Animate is no longer being actively developed. For more information, see Edge family of products | End of development.
You can use JavaScript to add interactivity to your compositions. You can define actions for each element using a built-in code editor and snippet library. Actions are functions that can be added to handle a single event.
-
Write the code for the event.
You can write your own code or use the code snippets to add common functions. For reference information, see the Edge Animate API guide.
The Code editor gives you a complete view of the JavaScript code in your project. It also allows you to view the raw code for the actions file.
You can insert labels on the Timeline and then use them as time references in function parameters. You can use a label name as a parameter for any playback function expecting a timecode value. Labels let you create actions like playing or seeking to a point on the Timeline.
To add a label:
You can place triggers on the Timeline to execute JavaScript code at a point in time.
To add a trigger:
-
Define the action to take at the trigger. For reference information, see the Edge Animate API guide.
You can modify the code for the trigger at any time by double-clicking the trigger icon on the Timeline.
