EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 193

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Related product manuals