Hey guys,
Suppose that I’m creating movieclips where I will dynamically choose which sprite I want them to have.
So, I create a BitmapData of the image that I’m going to use, create a bitmap containing that bitmapdata, then add the bitmap to my movieclip.
My question is, when I’m done with the movieclip and I’m going to set it to null and “removeChild” it, should I set bitmapdata to null as well? Does that do anything? Will it have been removed already since it’s being defined as a var?
Here’s the example in code:
var bmd:BitmapData = new TheSprite();
// bm was already defined outside the constructor class as:
// public var bm:Bitmap;
bm = new Bitmap(bmd);
addChild(bm);
// now do I need to worry about keeping track of bmd for memory leakage sake?
Sorry for such a noobie question