Macromedia Flash Server - éshared object help

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2005 > éshared object help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author éshared object help
dan

2005-06-21, 7:49 am

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com