There's been a number of questions on how to clone a imageLoader.getContent, so I thought I'd chuck in a slightly more complete solution so people don't have to waste time doing it.
package com.optricks.Tools
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.geom.Matrix;
import flash.display.DisplayObject;
import flash.geom.Rectangle;
/**
* ...
* @author Tito
*/
public class ImageTools
{
private static const _myType :String = "ImageTools";
public static function cloneImage(image:DisplayObject) :DisplayObject
{
var bmd :BitmapData;
var bitmap :Bitmap;
var spr :Sprite;
var bounds :Rectangle = image.getBounds(image);
bmd = new BitmapData(int(bounds.width + 0.5), int(bounds.height + 0.5), true, 0x0);
bmd.draw(image, new Matrix(1, 0, 0, 1, -bounds.x, -bounds.y));
bitmap = new Bitmap(bmd, "auto", true);
bitmap.x = bounds.x;
bitmap.y = bounds.y;
spr = new Sprite();
spr.addChild(bitmap);
return spr;
}
}}
Hope this saves you 20 minutes