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

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

    private var previousUnscaledWidth:Number;
    private var previousUnscaledHeight:Number;
    private var sourceInvalid:Boolean;
    private var loadFailed:Boolean;

    //----------------------------------
    //  bitmapData
