Question
still no answer
hi I have an array stored in a remote shared object except i
don't know how to get the array out of the remote shared object and
use it. How do i get the array and use it?.....what causes
access.text = SO.data.slot0.array0[0]; ........ to fail and display
undefined?
client_nc = new NetConnection();
client_nc.onStatus = function(info) {
trace("Level:" + info.level + newline + "Code: " + info.code);
}
client_nc.connect("rtmp:/RSO");
SO = SharedObject.getRemote("data0", client_nc.uri, false);
SO.connect(client_nc);
SO.onSync = function(list) {
for ( var i = 0; i < list.length; i++ )
if ( list .name == "slot0" && list.code != "success")
{
array0 = SO.data.slot0;
break;
}
};
start_btn.onPress = addarray;
function addarray() {
SO.data.slot0 = array0;
slot0.text = SO.data.slot0;
access.text = SO.data.slot0.array0[0];
}
var array0 = new Array();
var minsxxx = 1;
var secsxxx = 2;
array0[0] = minsxxx;
array0[1] = secsxxx;
client_nc = new NetConnection();
client_nc.onStatus = function(info) {
trace("Level:" + info.level + newline + "Code: " + info.code);
}
client_nc.connect("rtmp:/RSO");
SO = SharedObject.getRemote("data0", client_nc.uri, false);
SO.connect(client_nc);
SO.onSync = function(list) {
for ( var i = 0; i < list.length; i++ )
if ( list .name == "slot0" && list.code != "success")
{
array0 = SO.data.slot0;
break;
}
};
start_btn.onPress = addarray;
function addarray() {
SO.data.slot0 = array0;
slot0.text = SO.data.slot0;
access.text = SO.data.slot0.array0[0];
}
var array0 = new Array();
var minsxxx = 1;
var secsxxx = 2;
array0[0] = minsxxx;
array0[1] = secsxxx;
