Calling setPref() from JavaScript syntax crashes Director, Shockwave Player
Issue
Calling the player object's setPref() method,_player.setPref() , from within JavaScript syntax crashes Macromedia Director, its projectors and the Shockwave Player.
Reason
The reason for this issue is unknown at this time. (Ref. 203663)
Solution
Use Lingo instead of JavaScript syntax. This can most easily be achieved by using a Lingo helper function. For example, the following Lingo handler could be placed in a movie script cast member:
-- in Lingo create a helper function on lingo_setPref (aPrefName, aPrefValue) setPref(aPrefName,aPrefValue) end
Then elsewhere in your JavaScript code you can call the Lingo helper function instead of the player object'ssetPref() method:
// call the Lingo helper function lingo_setPref("DemoPrefs","Some dummy value");
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
