Skip to main content
October 15, 2007
Question

Need help with RSO's

  • October 15, 2007
  • 1 reply
  • 218 views
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
    This topic has been closed for replies.

    1 reply

    October 15, 2007
    Generally RSO files are not set to the sharedobjects folder immediately. It is not until FMS’s garbage collector has flushed them to the sharedobjects folder that RSO’s are evident; so initially the sharedobjects folder may appear empty.

    If you wish immediately flush your RSO files you may reload the application via your FCS Admin Panel or you may use the flush method to promptly update/generate your RSO files.

    Noe
    Influxis Support