 import flash.display.BitmapData;
 import flash.display.DisplayObject;
 import flash.display.Graphics;
+import flash.display.Loader;
+import flash.display.LoaderInfo;
+import flash.events.Event;
 import flash.events.EventDispatcher;
+import flash.events.IOErrorEvent;
+import flash.events.SecurityErrorEvent;
 import flash.geom.ColorTransform;
 import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;
-import flash.utils.getDefinitionByName;
+import flash.net.URLRequest;
+import flash.system.LoaderContext;
 
 import mx.events.PropertyChangeEvent;
 import mx.geom.CompoundTransform;
 import mx.utils.MatrixUtil;
+
 
 
 /** 

            nonRepeatAlphaSource.dispose();
            nonRepeatAlphaSource = null;
        }
        
        var sourceAsBitmapData:BitmapData = source as BitmapData;
        var repeatFill:Boolean = (resizeMode == BitmapResizeMode.REPEAT);  
        
        if (compoundTransform)
        {

	private static const RADIANS_PER_DEGREES:Number = Math.PI / 180;
	private static var transformMatrix:Matrix = new Matrix();
    private var nonRepeatAlphaSource:BitmapData;
    private var _bitmapData:BitmapData;
    
    private var regenerateNonRepeatSource:Boolean = true;
    private var lastBoundsWidth:Number = 0;
    private var lastBoundsHeight:Number = 0;
    private var applyAlphaMultiplier:Boolean = false;
    private var nonRepeatSourceCreated:Boolean = false;
    private var bitmapDataCreated:Boolean = false;
    
	//--------------------------------------------------------------------------
	//
