I'm a little confused about what is happening, and why you are loading the same SWF multiple times. Regardless, an example for me to see the issue, and the FLA if you can, would be most appreciated.
My first assumption is that since everything is set to global, each time the SWF is loaded the values are reset or overwritten or shared or confused. If this code is to stay within the function, removing the globality of the variables would be a good start.
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.