     private var previousUnscaledWidth:Number;
     private var previousUnscaledHeight:Number;
     private var sourceInvalid:Boolean;
+    private var loadFailed:Boolean;
 
     //----------------------------------
     //  bitmapData

        // clear any current image and remove any event listeners from 
        // load-event  dispatcher.
        setBitmapData(null);
    }
    
    /**

        // clear any current image and remove any event listeners from 
        // load-event  dispatcher.
        setBitmapData(null); 
        loadFailed = true;
    }
}  
}
