Why application.clients array gets disordered ?
I have one application, is like a room of students. So whenever one client (flex client) is connected is like a new student in the room. I have been researching and I found that every new client is stored in application.clients
If I have 3 students connected, lets say student1, student2, student3, and student4 if I made a trace :
for (var i = 0; i<application.clients.length; i++){
trace("student "+i+": "+application.clients.name);
}
It shows me in the log:
student1
student2
student3
student4
Now, if student2 left the room, the trace is:
student1
student4
student3
I need to have the the application.clients in order, I mean, after student2 has left the room to have:
student1
student3
student4
Please, what I can do to resolve this problem ?
Thanks in advance.
