 import flash.system.LoaderContext;
 import flash.utils.ByteArray;
 
+import mx.core.IInvalidating;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.graphics.BitmapFillMode;

                
        if (!bitmapData && tmpSprite)
        {
            bitmapData = new BitmapData(tmpSprite.width, tmpSprite.height, true, 0);
            bitmapData.draw(tmpSprite, new Matrix());
            currentBitmapCreated = true;
            
            if (tmpSprite.scale9Grid)

            // for example that we do not receive further load related events
            // our previous content before we can consider the new source.
            clearLoadingContent();
            
            // Remove any event listeners from previous source.
            removeAddedToStageHandler(_source);
            
            _source = value;
            sourceInvalid = true;
