|
| Hi guy
I have 20 shared objects named
Obj1
Obj2
Obj3
And so on
I need to run thow them all and then get a var and sum it up
But I have a problem
I use this
_root.tmparray[_root.count] =
SharedObject.getRemote(tmp_ban.name+"-+_root.counter, _root.con.uri,
true);
_root.tmparray[_root.count].connect(_root.con);
_root.tmparray[_root.count].onSync = function(info) {
tmpx1 = this.data.regular;
if(tmpx1<>undefined){
_root.sum_ar1[_root.count]=Number(tmpx1);
}
delete this["onSync"];
}
_root.count=_root.count+1;
}while(_root.count<=20);
}
and then I run a sum on the array
but
how do I know when all the 20 shared object connected and I got all
there data for the sum event?
Any good ideas?
10x
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|