Preloading images in advance

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 :frowning: Is there maybe something in BitmapData that I need to use?

Any ideas?