This content has been marked as final. Show 6 replies
When you say they "don't work", what exactly is happening. A script error? Values not returned correctly? Please describe more exactly the symptoms you're seeing, and how they differs from what you are expecting.
I can confirm that setpref and getpref definitely work in shockwave 10.
The difference is that since Dir MX 04, the prefs are stored per-user, in each user's application data folder.
For projectors, look in:
C:\Documents and Settings\<USER NAME>\Application Data\Macromedia\Director MX 2004
For shockwave, look in:
C:\Documents and Settings\<USER NAME>\Application Data\Macromedia\Shockwave Player\Prefs
In the shockwave prefs folder is a folder named with a random string, and in there are the pref files.
Hope this helps!
Yeah i had the same problem
setPref("test", "hello world!") returns TRUE but no file are written.
I just let it be and didnt think of it more.
Try use _player.setPref() instead and see if that works.
There will be no difference in functionality, whether using _player.setPref() or simply setpref(). It is the change in where the pref files are stored that is the issue.