I am trying to populate a listbox control. Sometimes the listbox populates correctly, sometimes it does not. I am thinking it has something to do with the amount of time needed to complete the function, but am unsure.
this is the part of the switch statement.
case "\\A\\:":
myvararray = src.split("~"
;
myvar1 = myvararray[0];
totalcount++
lstOnline.addItem(myvar1.substr(4),myvararray[1]);
gotoAndPlay(4)
break;
I have placed trace statement to ensure that the function is being called each time, and that the function completes each time it is called. I have also verified that the label and data fields have data in them.
This function is called in the onData event of an xmlSocket object.
any assistance is greatly appreciated
this is the part of the switch statement.
case "\\A\\:":
myvararray = src.split("~"
myvar1 = myvararray[0];
totalcount++
lstOnline.addItem(myvar1.substr(4),myvararray[1]);
gotoAndPlay(4)
break;
I have placed trace statement to ensure that the function is being called each time, and that the function completes each time it is called. I have also verified that the label and data fields have data in them.
This function is called in the onData event of an xmlSocket object.
any assistance is greatly appreciated