I’m trying to build a program that can connect to all chat rooms that are create
_global.chat = new Array(new NetConnection());
_global.roomsOn = new Array(1,2,3,4,5);
for (p=0; p<=_global.roomsOn.length; p++)
{
_global.chat[p].connect("rtmp://www.myroom.com/rooms/" + _global.roomsOn[p], "Server");
users_so[p] = new Array(SharedObject.getRemote("users_so", _global.chat[p].uri, false));
users_so[p].connect(_global.chat[p]);
}
The problem is, it will only connect to the first room in the roomsOn array, and neglect to connect to the rest… Any ideas on how I can fix it. 