To add scripts to a page, right click on the page and select Edit Page Script from the popup menu.

An embeded script editor is brought up. You can hover the cursor over a graphical object to see its variable names, e.g., fish. These variable names are unique in the namespace of the page.
You can right click on the area outside of the page thumbnail or a blank area of the thumbnail (i.e., not on any objects) to bring up a list of event handlers that are allowed for the page. In particular, onEnter and onLeave are invoked when a prototype's control transitions to or from the page.

You can also click on an object to bring up the event handler list for the object. For example, the fish object has three event handlers. You can click on an item to create an event handler, e.g., onPressed.

You can then drag a graphical object to the code which the script editor will generate the variable name of the object for you.


You can then script with Java or JavaScript. You need to reference ActivityDesigner Scripting API to see what methods are supported for manipulating objects on a page. Different types of objects might have different methods available.

| < Storyboarding Interaction Logic | Prototyping Dynamic Graphical Representations by Demonstration > |
Copyright © 2005-2007 by the Regents of the University of Washington.