 import flash.events.MouseEvent;
 import mx.core.ClassFactory;
 import mx.core.EdgeMetrics;
-import mx.core.FlexVersion;
 import mx.core.IFlexDisplayObject;
 import mx.core.mx_internal;
 import mx.events.ChildExistenceChangedEvent;


        var newLink:Button = Button(navItemFactory.newInstance());

        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
        {
            newLink.styleName = this;
        }
        else
        {
            var linkButtonStyleName:String = getStyle("linkButtonStyleName");
            if (linkButtonStyleName)
                newLink.styleName = linkButtonStyleName;
        }
         
        if (label && label.length > 0)
            newLink.label = label;
        else

        
        var navItemStyleName:Object;
        
        if (styleProp == "linkButtonStyleName")
            navItemStyleName = getStyle("linkButtonStyleName");
        
        if (navItemStyleName)
        {
