 import flash.utils.getTimer;
 import mx.controls.colorPickerClasses.SwatchPanel;
 import mx.controls.colorPickerClasses.WebSafePalette;
-import mx.core.FlexVersion;
 import mx.core.UIComponent;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;

            swatchPreview.styleName = new StyleProxy(this, swatchStyleFilters);
            swatchPreview.color = selectedColor;
            swatchPreview.name = "colorPickerSwatch";
            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
                swatchPreview.setStyle("swatchBorderSize", 0);

            addChild(swatchPreview);
        }


        if (dropdownSwatch)
        {
            if (styleProp == "swatchPanelStyleName")
            {
                var swatchPanelStyleName:Object = getStyle("swatchPanelStyleName");
                if (swatchPanelStyleName)
                    dropdownSwatch.styleName = swatchPanelStyleName;
            }
            dropdownSwatch.styleChanged(styleProp);
        }
