I’m looking through the JSAPI docs for Flash MX 2004 and can’t for the life of me figure this out..  how can I import an image into Flash?

The goal is to use

// trace the bitmap
fl.getDocumentDOM().traceBitmap(0, 500, ‘normal’, ‘normal’);
// Export the .swf file.
doc.publish("file:///f:/jsfl/test.fla.swf", true);
// Quit the Flash MX 2004 IDE
fl.quit(true);

to publish the SWF..  i.e. convert a raster image to SWF on the fly..  smile