macromedia flash flashcom:
Hiya, I have created my persistent remote shared object, I can see the fso file
created in my the server, and my string is on it. But for some reason it just
doesn't like loading up...
If I use getLocal if works fine... Maybe one of you have a fresh pair of
eyes!?
If you can, please give us a hand. Cheers
// 1 - connecting, and storing one string in my remote shared object ----
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://myDomain");
var my_so:Object = new Object();
my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
my_so.connect(my_nc);
my_so.data.aString = "a testing string";
/// making sure it's saved.
my_so.data.aString.flush();
// or: my_so.data.flush(); - both gave the same result
//I can see it fine now
trace(my_so.data.aString);
// 2 - connecting, and TRYING to load my string from my_so ----
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://myDomain");
var my_so:Object = new Object();
my_so = SharedObject.getRemote("testSo", my_nc.uri, true);
my_so.connect(my_nc);
// I can see nothing (undefined)! but aString is stored in testSo.fso in my
server...
trace(my_so.data.aString);