             if (restoreDisplayObject)
             {
                 UIComponent(parent).$removeChild(displayObject);
-                displayObject = oldDisplayObject;
+                setDisplayObject(oldDisplayObject);
             }
             return bitmapData;
         

     */
    public function createDisplayObject():DisplayObject
    {
        return new InvalidatingSprite();
    }
    
    private var _alwaysCreateDisplayObject:Boolean;

        dispatchPropertyChangeEvent("displayObject", oldValue, value);

        // We need to apply the display object related properties.
        displayObjectChanged = true;
        invalidateProperties();
    }

    //--------------------------------------------------------------------------
