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
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
2 matches
Mail list logo