             var swatchPanelStyleName:Object = getStyle("swatchPanelStyleName");
             if (swatchPanelStyleName)
                 dropdownSwatch.styleName = swatchPanelStyleName;
-            else if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-                dropdownSwatch.styleName = this;
 
             // Assign event handlers
             dropdownSwatch.addEventListener(ColorPickerEvent.ITEM_ROLL_OVER,


        if (dropdownSwatch)
        {
            // VERSION check
            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)
            {
                if (styleProp == "swatchPanelStyleName")
                {
                    var swatchPanelStyleName:Object = getStyle("swatchPanelStyleName");
                    if (swatchPanelStyleName)
                        dropdownSwatch.styleName = swatchPanelStyleName;
                }
            }
            dropdownSwatch.styleChanged(styleProp);
        }

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