Quote:
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
ActionScript Code:
var m:MovieClip = this.createEmptyMovieClip("m", 0);
m.lineStyle(40);
m.lineTo(.5, 0);
m._x = m._y = 200;
m.unloadMovie();
// 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);
m.attachBitmap(bmp, 1);
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