             }
         }
         
-        if (layoutDirection == "rtl")
+        if (layoutDirection == LayoutDirection.RTL)
             relX += dataTip.width;
         
         var o:Point = new Point(relX, relY);

        var tOffset:Number = getStyle("dataTipOffset");

        // If the layoutDirection is rtl, swap left and right placement
        if (layoutDirection == "rtl")   
        {
            if (tPlacement == "left")
                tPlacement = "right";


import mx.core.IFlexDisplayObject;
import mx.core.IUIComponent;
import mx.core.LayoutDirection;
import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.effects.Tween;
