Question
Need help with RSO's
This is my first attempt at working with FMS and RSO's so
please bear with me!
If someone could walk me through the basic steps of creating a RSO, adding a property
to it and then reading that property back would be a huge first step! Using the following AS
I appear to have some progress, but get "undefined" when I try to read back the property...
myRtmpString is the actual connection string for my server in the code...
var my_nc = new NetConnection();
my_nc.connect("rtmp://myRtmpString");
var myRemote_so = SharedObject.getRemote("userList", my_nc.uri, false);
myRemote_so.connect.success(my_nc);
my_nc.onStatus = function(info){
trace(info.code+" : "+info.level+" - "+info.description);
}
myRemote_so.setProperty("userName" , "Jeff");
userName = myRemote_so.getProperty("userName");
trace(userName);
This is what I get in the output window...
undefined
NetConnection.Connect.Success : status - Connection succeeded.
As always any help would be greatly appreciated!
Thanks in advance
jH
If someone could walk me through the basic steps of creating a RSO, adding a property
to it and then reading that property back would be a huge first step! Using the following AS
I appear to have some progress, but get "undefined" when I try to read back the property...
myRtmpString is the actual connection string for my server in the code...
var my_nc = new NetConnection();
my_nc.connect("rtmp://myRtmpString");
var myRemote_so = SharedObject.getRemote("userList", my_nc.uri, false);
myRemote_so.connect.success(my_nc);
my_nc.onStatus = function(info){
trace(info.code+" : "+info.level+" - "+info.description);
}
myRemote_so.setProperty("userName" , "Jeff");
userName = myRemote_so.getProperty("userName");
trace(userName);
This is what I get in the output window...
undefined
NetConnection.Connect.Success : status - Connection succeeded.
As always any help would be greatly appreciated!
Thanks in advance
jH
