Hi,

how to clear bmp/sprites of the memory?

I use this function to generate sprites of the lib:

PHP Code:
addSprite(tilesDimtilesDim"spr_" root["tile_" map][i][j], mcTile);

function 
addSprite(XintYintcStringmcObject) {
    
cls getDefinitionByName(c) as Class;
    
bmp = new cls(00) as BitmapData;
    
sprite = new Bitmap(bmp);

    
mc.addChild(sprite);

    
sprite.X;
    
sprite.Y;
    
sprite.name c;

I already tried this:

PHP Code:
bmp.dispose()
bmp null 
But it does not work, the memory continues to increase. Any idea?