User Guide

on savedLocal 193
Example
The following handler overrides the behaviors values set in the Parameters dialog box for the
behavior. New values are contained in the list
currentInitializerList. Normally, the
Parameters dialog box allows the user to set the mass and gravitational constants. However, this
handler assigns these parameters constant values without displaying a dialog box:
-- Lingo syntax
property mass
property gravitationalConstant
on runPropertyDialog me, currentInitializerList
--force mass to 10
currentInitializerList.setaProp(#mass, 10)
-- force gravitationalConstant to 9.8
currentInitializerList.setaProp(#gravitationalConstant, 9.8)
return currentInitializerList
end
// JavaScript syntax
function runPropertyDialog(currentInitializerList) {
//force mass to 10
currentInitializerList.setaProp("mass", 10)
//force gravitationalConstant to 9.8
currentInitializerList.setaProp("gravitationalConstant", 9.8)
return(currentInitializerList)
}
See also
on getBehaviorDescription, on getPropertyDescriptionList
on savedLocal
Usage
-- Lingo syntax
on savedLocal
statement(s)
end
// JavaScript syntax
function savedLocal() {
statement(s);
}
Description
System message and event handler; this property is provided to allow for enhancements in future
versions of Shockwave Player.
See also
allowSaveLocal