# Preloading images in advance

**URL:** <https://forum.kirupa.com/t/preloading-images-in-advance/256123>\
**Category:** Uncategorized\
**Created:** [March 31, 2008, 1:45am UTC](https://forum.kirupa.com/t/preloading-images-in-advance/256123 "2008-03-31T01:45:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trundrumbalind](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trundrumbalind/32/696_2.png) [@trundrumbalind](https://forum.kirupa.com/u/trundrumbalind)\
**Post date:** [March 31, 2008, 1:45am UTC](https://forum.kirupa.com/t/preloading-images-in-advance/256123/1 "2008-03-31T01:45:29Z")

</div>

Ok I basically want to load a series of images into my Flash movie but I kind of want them to be stored “in memory”. So if a user clicks a button, it’s not loading from “myfile.jpg”. Instead, a preloader at the beginning loads “myfile.jpg” and a bunch others into the movie but the user can’t see them. This is so when a user clicks on one image, leaves it, then comes back to that image, it isn’t be loaded in all over again.

I though about creating a sprite for each image but NOT addChild’ing it until I need it later but I’m not sure how I’d go about that… I can’t start using “getChildAt()” etc unless I’ve added it ☹ Is there maybe something in BitmapData that I need to use?

Any ideas?
