[flexcoders] Having difficulties cloning content within Loader Control

2008-04-23 Thread Mike Anderson
Hello All, I am attempting to clone a Vector Image contained within a Loader Control, and am having some problems. The only way I've seen this done before, is by using the Bitmap(loaderObject.content).bitmapData.clone() method, but maybe I am getting errors because it's a SWF File being loaded

Re: [flexcoders] Having difficulties cloning content within Loader Control

2008-04-23 Thread Daniel Gold
I believe you can draw any DisplayObject onto a BitmapData instance and get an Image that way. So something like var bmpData:BitmapData = new BitmapData(); bmpData.draw(loaderObject.content); var bmp:Bitmap = new Bitmap(bmpData); var image:Image = new Image(); image.source = bmp; that's all