Hi Steve, I think something else must be interfering with your code. If you paste the following code (pretty identical to yours) into a Script block in a new Flex project you should see "windowDragEnd" traced out to the console. (init() is called in creationComplete)
import flexmdi.events.MDIManagerEvent; import flexmdi.managers.MDIManager; import flexmdi.containers.MDIWindow; private function init():void { var win1:MDIWindow = new MDIWindow(); win1.width = win1.height = 300; win1.title = "Window One"; MDIManager.global.add(win1); MDIManager.global.addEventListener(MDIManagerEvent.WINDOW_DRAG_END, windowEventHandler); } private function windowEventHandler(event:Event):void { if(event is MDIManagerEvent) { trace(event.type); } } HTH, Ben --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote: > > I am using FlexMDI and would like to know when a window has been > dragged to a new position so I can save the position. > > I am adding windows on the fly with... > > var newWindow:MDIWindow = new MDIWindow(); > MDIManager.global.add(newWindow); > > I have tried... > > newWindow.addEventListener(MDIWindowEvent.DRAG_END, > this.windowDragEndEventHandler); > MDIManager.global.addEventListener(MDIManagerEvent.WINDOW_DRAG_END, > this.windowDragEndEventHandler); > > but these do not fire. > > Anybody have any ideas? > > If this is not the right forum for these questions, please let me know > where to post this. I have checked and cannot find a forum directly > related to FlexMDI. >