 
         // TODO EGeorgie: don't clear the graphics if the GraphicElement is invisible and explicitly owns the DO?
         // If we are the first in the sequence, clear the graphics:
-        if (shareIndex <= 0 && drawnDisplayObject is ISharedGraphicsDisplayObject)
-            ISharedGraphicsDisplayObject(drawnDisplayObject).graphics.clear();
-
-        if (visible || shareIndex == -1)
+        if (sharedIndex <= 0)
+            Sprite(drawnDisplayObject).graphics.clear();
+
+        if (visible || sharedIndex == -1)
             updateDisplayList(_width, _height);
 
         // If we aren't doing any more invalidation, send out an UpdateComplete event

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

import mx.managers.LayoutManager;
import mx.utils.MatrixUtil;
import mx.utils.OnDemandEventDispatcher;
use namespace mx_internal;

/**
