MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 193

Director scripting reference
Table of Contents

Advertisement

Example
The following handler overrides the behavior's values set in the Parameters dialog box for the
behavior. New values are contained in the list
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 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
currentInitializerList
on getPropertyDescriptionList
. Normally, the
on savedLocal
193

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents