Contents

XML Syntax

Script Using JavaScript

JavaScript can be added to Hippani Animator to create interactive movies, pages, applications, comics or games.

Hippani Animator includes built-in functions for controlling the timeline, playing video, sounds and interacting with items. No JavaScript knowledge is needed to use these functions. Simply replace the parameters in the functions with the values needed.


Using JavaScript ScriptEditor

Change number parameters to 0,1,2... etc. Change boolean parameters to true or false.


Example:


GotoAndPlay(Frame:Number);

Becomes:


GotoAndPlay(10);

Example:


OpenYouTube("Script ID","Video ID",Loop:Boolean,AutoPlay:Boolean,ShowControls:Boolean);

Becomes:


OpenYouTube("MyVideo","ABCDEFG",false,true,true);

Many functions require a 'Script ID'. This is a unique name you give to an item in the timeline. The 'Script ID' can be set in the frame properties.


Try the tutorials or read the reference of the different objects for more details on adding script to your movie.


Adding Buttons

Script in the Timeline

Understanding Script ID

Controlling the Timeline

Adding JavaScript

Controlling Frames with JavaScript

XML Syntax