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

            _scaleGridRight = NaN;
            _scaleGridTop = NaN;
            _scaleGridBottom = NaN;
            
            if (value is Class)
            {
                var cls:Class = Class(value);
                value = new cls();
            }
            else if (value is String)
            {

    private var _scaleGridLeft:Number;
    private var _scaleGridRight:Number;
    private var _scaleGridTop:Number;
    private var bitmapDataCreated:Boolean = false;
    
    private static var matrix:Matrix = new Matrix();  
    private var cachedSourceGrid:Array;
