BitmapData Question


I have written a class that loads images, caches them as BitmapData instances, then attaches them to MCs when needed.

My problem is that I am using very large images and very quickly I am hitting memory issues. I need a way to attach the BitmapData instances to MCs, then dispose of the BitmapData instances (If you call BitmapData.dispose() after attaching the BitmapDataInstance to an MC, the image dissapears from the MC.

Is there any solution?