# Load From XML and LOOP

**URL:** <https://forum.kirupa.com/t/load-from-xml-and-loop/305981>\
**Category:** flash\
**Created:** [March 7, 2010, 7:14am UTC](https://forum.kirupa.com/t/load-from-xml-and-loop/305981 "2010-03-07T07:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![makeitrain](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@makeitrain](https://forum.kirupa.com/u/makeitrain)\
**Post date:** [March 7, 2010, 7:14am UTC](https://forum.kirupa.com/t/load-from-xml-and-loop/305981/1 "2010-03-07T07:14:20Z")

</div>

Hi all,

I am doing a project for my class work and im having some issues to get the things done.

\<?xml version=“1.0” ?\>  
\<project\>  
\<digits\>  
\<digit\>111111\</digit\>  
\<digit\>222222\</digit\>  
\<digit\>444444\</digit\>  
\<digit\>333333\</digit\>  
…  
\</digits\>  
\</project\>

I need to loop the above XML in a flash (one after one in a dynamic text box), by putting a dynamic text box in the Flash movie and assign a function to a button, onRelease the loop will begin (XML file may have lines/numbers like 20,000 (and loop should run for 30-45 seconds and stops, by the time loop stops that current number should assign to a variable and write it  
to a text file(upto 10 numbers) for eg :

number 01 is : 111111  
number 02 is : 333333  
…  
number 10 is : 777777

And once number stops, there will be a RESET button to reset the action to its original state and start the 2nd number and so on…

NOTE: once a number selected it should not comes to the loop again.

Im trying to do this inflash 8 please let me know is it possible to do this in Flash 8 with Actionscript 2.0 or need to do it with Flash cs3(Version 9)

Flash Source attached for your reference…

Thanks You,

Dinesh.
