Question
Remote Shared Object
Hi....i created this script hoping that i could create a
remote shared object but when i look in the flash media server 2
admin console under the shared objects catagorey I see the
connection but I don't see the object.
Is something wrong with the code?
I'm new to flash and if you would correct the code i'd appreciate it.
BTW i'd like the simplest remote shared object possible....if you feel like writing a remote shared object i'd appreciate it.
my_nc = new NetConnection();
my_nc.connect("rtmp:/development");
//
function initRSO(){
my_rso = SharedObject.getRemote("myRSO", my_nc.uri, true);
//
my_rso.data.someVariable="this value";
trace("value is: " + my_rso.data.SomeVariable);
//
my_rso.connect(my_nc);
}
my_nc.onStatus = function(info) {
if (info.code == "netConnection.Connect.Success"){
initRSO();
}
};
Is something wrong with the code?
I'm new to flash and if you would correct the code i'd appreciate it.
BTW i'd like the simplest remote shared object possible....if you feel like writing a remote shared object i'd appreciate it.
my_nc = new NetConnection();
my_nc.connect("rtmp:/development");
//
function initRSO(){
my_rso = SharedObject.getRemote("myRSO", my_nc.uri, true);
//
my_rso.data.someVariable="this value";
trace("value is: " + my_rso.data.SomeVariable);
//
my_rso.connect(my_nc);
}
my_nc.onStatus = function(info) {
if (info.code == "netConnection.Connect.Success"){
initRSO();
}
};
