Thanks for the reply Deep.
Here is the problem:
There is a Flash web app. on an ASP page. It retrieves a variable from the page URL and sends it to the Flash movie like this:
<embed src="edit_time_t.swf?ID=<%=Request.QueryString["ID")%>"
Then Flash retrieves some data from a database according to this var.
I'd like to be able to store user preferences in SharedObject but the problem is as soon as I add the '?ID=<%=Request.QueryString["ID")%>"' Flash doesn't recognize it as a SharedObject created by this movie.
As a workaround I am trying to make this SO available to all swf-s in the directory no matter which file has created it. MM online documentation says that the only way to go is to indicate the "locatPath" parameter in getLocal().
Well, I did. Still doesn't help.
Here is the code:
//For "a.swf":
so = sharedobject.getLocal("savedPrefs");
so.data.thevar=myTextfield.text;
so.flush();
//then I can access my so in the same movie when the page is reloaded:
indicator.text=so.data.thevar;
The problem is when I try to do access it from a different movie (see first posting) it doesn't work.
If you have a working example of accessing SO by a movie that didn't create it please let me know.
Thanks!
Bookmarks