         invalidateSize();
         invalidateDisplayList();
     }
-        
+
     /**
      *  @private
      *  Utility method which analyzes our source and either acquires the

        else if (value is DisplayObject)
        {
            tmpSprite = value as DisplayObject;
        }
        else if (value == null)
        {

        setBitmapData(null); 
        loadFailed = true;
    }
    
    /**
     *  @private
     *  Used for deferral of bitmap capture when an assigned source 
     *  has yet to be added to the stage. 
     */
    private function source_addedToStageHandler(event:Event):void
    {
        removeAddedToStageHandler(event.target);
        applySource();
    }
    
    /**
     *  @private
     */
    private function removeAddedToStageHandler(target:Object):void
    {
        if (target && target is DisplayObject)
            target.removeEventListener(Event.ADDED_TO_STAGE, source_addedToStageHandler);
    }
}  
}
