      */
     public function invalidateLayoutDirection():void
     {
-        const parentElt:IVisualElement = parent as IVisualElement;
+        const parentElt:ILayoutDirectionElement = parent as ILayoutDirectionElement;
         if (!parentElt)
             return;
         

import flash.display.BlendMode;
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.IEventDispatcher;
import flash.geom.ColorTransform;

        if (_layoutDirection != null)
            return _layoutDirection;
        
        const parentElt:ILayoutDirectionElement = parent as ILayoutDirectionElement;
        return (parentElt) ? parentElt.layoutDirection : LayoutDirection.LTR;   
	}
	
	/**
