# For loop & data problem

**URL:** https://forum.kirupa.com/t/for-loop-data-problem/103158
**Category:** Uncategorized
**Created:** [March 2, 2004, 4:34pm UTC](https://forum.kirupa.com/t/for-loop-data-problem/103158 "2004-03-02T16:34:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flaxcreatures](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flaxcreatures/32/448_2.png) [@flaxcreatures](https://forum.kirupa.com/u/flaxcreatures)
#### Post date: [March 2, 2004, 4:34pm UTC](https://forum.kirupa.com/t/for-loop-data-problem/103158/1 "2004-03-02T16:34:07Z")

</div>

Hi there,  
I’m having a problem with for loops and the arrays that were created while those loops. I mostly get the data from an XML and store it during the for loop into an array, am I obligated to use the array imediatley? cause if I want to use some of it, it’s all dissapeared. Ⓜ

Notice that I used this for loop in an onLoad function because I’m used to load the XML data like this…  
Should I load it diffrent?

Cu
