OnClick functions
Function | Description | Examples |
|---|---|---|
ALERT("message") | ALERT displays the message value in an alert box. | Example: |
ANIMATE(attribute, state1, state2, ... stateN) | ANIMATE changes the attribute to the next value in the parameter list over half a second. If ONCLICK contains ANIMATE("X",0,100), clicking the component animates "X" between 0 and 100. Clicking again animates it back to 0 from 100. With more than two states, each click moves to the next state in order. If ONCLICK contains ANIMATE("ROTZ",0,-130,10,100), each click moves through the 4 values in order. | |
ANIMATESLOW(attribute, state1, state2, ... stateN) | ANIMATESLOW works like ANIMATE but takes one second. | |
ANIMATEFAST(attribute, state1, state2, ... stateN) | ANIMATEFAST works like ANIMATE but takes a quarter of a second. | |
ANIMATECUSTOM("attribute", time, easein, easeout, state1, ...stateN) | ANIMATECUSTOM works like ANIMATE but lets you set the duration and easing. See ANIMATE for an explanation of easing. | |
GOTOSCENE("sceneName," time, easein, easeout) | GOTOSCENE moves to the scene you specify by name or number. See ANIMATE for an explanation of easing. | |
REDRAW() | REDRAW redraws the component that contains the function. | |
SET("attribute", state1, state2, ...stateN) | SET sets the specified attribute to the next state in the list. |