String concatenation

Hi all,
I have an XML file which would parse the words and gives me a result as 01,02,03…10.
I have another XML which would parse similarly and get me a result 01,02,03,04…10.
Now I want to bring a result like 01,02,03…09,10,01,02,03…10.
After this I want to loop back to the start of the string.I know that i have to check EOF but I dont know how to do this
Can anyone explain me with the actionscript code…??

Thanks in advance…!!
Nirmal.