Well, I just tried that and the event still doesn't fire. Here is my complete application...
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> <![CDATA[ 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); } } ]]> </mx:Script> <mx:Button label="Get Ver" click="trace('The button was clicked');"/> </mx:Application> I added the button control as a sanity check. When I ran it, I clicked the button, moved the window, clicked the button, moved the window,... You get the idea. The output of the trace was... The button was clicked The button was clicked The button was clicked The button was clicked The button was clicked I don't really see what I can be doing wrong. BTW. I am using Flex 3 beta 2 but just noticed beta 3 is out which I am downloading now. Could that have anything to do with it? Thanks for any and all help with this. --- In [email protected], "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote: > > 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 [email protected], "valdhor" <stevedepp@> 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. > > >

