Crossware

Table of Contents        Previous topic       Next topic       

GettingStarted->Add Javascript Files to Project

To use jState, one or more Javascript files need  to be added to your project.  Every time the simulator is started, each Javascript file in the project will be compiled and run.

During this initial execution stage, event handlers can be configured.  These event handlers will then be called at appropriate times as simulation proceeds.

To add a new Javascript file to your project, select File->New and, with the Files tab selected, click on Javascript Source File in the list of file types.  The environment will choose a unique filename for you.  You can choose a different filename if you wish.  Click OK.