 import flash.geom.Point;
 
 import mx.components.baseClasses.FxSlider;
-import mx.layout.ILayoutItem;
-import mx.layout.LayoutItemFactory;
+import mx.layout.ILayoutElement;
+import mx.layout.LayoutElementFactory;
 
 [IconFile("FxHSlider.png")]
 

     */
    override protected function calculateThumbSize():Number
    {
        var thumbLItem:ILayoutItem = 
            LayoutItemFactory.getLayoutItemFor(thumb);
        return thumbLItem.actualSize.x;
    }

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

    {
        if (thumb)
        {
            var thumbLElement:ILayoutElement = 
                LayoutElementFactory.getLayoutElementFor(thumb);

            var trackLElement:ILayoutElement = 
                LayoutElementFactory.getLayoutElementFor(track);
            var trackPos:Number = trackLElement.getLayoutPositionX();

            thumbLElement.setLayoutPosition(Math.round(trackPos + thumbPos),
                                            thumbLElement.getLayoutPositionY());
        }
    }
    
