# Best way to fill a huge array

**URL:** <https://forum.kirupa.com/t/best-way-to-fill-a-huge-array/237111>\
**Category:** flash\
**Created:** [August 27, 2007, 1:21pm UTC](https://forum.kirupa.com/t/best-way-to-fill-a-huge-array/237111 "2007-08-27T13:21:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hatu](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hatu](https://forum.kirupa.com/u/hatu)\
**Post date:** [August 27, 2007, 1:21pm UTC](https://forum.kirupa.com/t/best-way-to-fill-a-huge-array/237111/1 "2007-08-27T13:21:41Z")

</div>

I was wondering what’s the best way to fill a huge array at the beginning of a game.  
Preferably it would also be able to show a loading screen with the percentage loaded.

If I just put the for loops in, the whole thing will just “freeze” for the duration of the for loops. Especially if it’s a very large array on a slower computer, it will seem like Flash is stuck.

What’s a good way to balance the load so it can atleast update the screen inbetween?
