      */
     private function windowUnminimizeHandler(event:Event):void
     {
-        removeEventListener("effectEnd", windowUnminimizeHandler);
+        removeEventListener(EffectEvent.EFFECT_END, windowUnminimizeHandler);
     }
 
     /**

import mx.core.windowClasses.StatusBar;
import mx.core.windowClasses.TitleBar;
import mx.events.AIREvent;
import mx.events.FlexEvent;
import mx.events.FlexNativeWindowBoundsEvent;
import mx.managers.DragManager;

            if (getStyle("minimizeEffect"))
            {
                event.preventDefault();
                addEventListener(EffectEvent.EFFECT_END, windowMinimizeHandler);
                dispatchEvent(new Event("windowMinimize"));
            }
        }
