Originally Posted by pixelwit
I think the problem is that unloadMovie works asynchronously. The ActionScript Definitive Guide states that unloadMovie is only executed when all other scripts in the current frame have completed.
Didn't understand what you meant until today, so I put off replying. Below is a little test
var m:MovieClip = this.createEmptyMovieClip("m", 0);
m._x = m._y = 200;
// removeMovieclip() would work here instead of
// unloadMovie() as long as you created it again
var bmp:flash.display.BitmapData = new flash.display.BitmapData(100, 40, false, 0xFF0000);
And yup, the bmp instance never shows up.
Do you know if this handling of unloadMovie() is considered a bug or feature?
@peter, thanks for the plug