BitmapData: I need all the help I can get. And fast!

Hi… I’m trying to use BitmapData to capture a movieclip that has been created dynamically.
Here’s my code:


on(release)
{
 import flash.display.BitmapData;
 import flash.geom.Matrix;
 var bmp:BitmapData = new BitmapData(_root.VESSEL.db._width, _root.VESSEL.db._height);
 _root.createEmptyMovieClip("newBMP",_root.getNextHighestDepth());
 _root.newBMP.attachBitmap(bmp, _root.newBMP.getNextHighestDepth());
 var trans:Matrix = new Matrix();
 trans.translate(-_root.VESSEL.db._width/2,-_root.VESSEL.db._height/2);
 bmp.draw(_root.VESSEL,trans);
}

As u must have noticed, the movieclip i wanna draw, namely _root.VESSEL, itself contains several other clips (eg _root.VESSEL.db).
The problem is that the clip doesnt get drawn at all! All i get is a white rectangle of the size i’ve created the bitmapData. But nothing of that movie clip has been captured.

Why is that happening? is it that the BitmapData cannot capture the details of a clip if it has child clips?? Coz here, VESSEL itself was created empty, and all the new shapes are actually being placed as movie clips inside other empty clips that were created in VESSEL.

Please help me out here…