flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

MDIWindowEvent.RESIZE String constant issue #369

Open capilkey opened 11 years ago

capilkey commented 11 years ago

The value for the MDIWindowEvent.RESIZE constant is "resize" this is the same as the Flex 3 mx.events.ResizeEvent.RESIZE constant. This causes a conversion exception to be thrown whenever an MDIWindow is resized by any means.

The MDIWindowEvent.RESIZE String should be changed to something unique such as "resizeMDIWindow". This needs to be changed in both the MDIWindowEvent.as file as well as the MDIWindow.as file.

You can reproduce the error by using Firebug with FlashFirebug and trying to maximize or minimize a window.

Mansuro commented 11 years ago

I tried testing the MDI binaries to reproduce this issue, but I have a runtime error.

capilkey commented 11 years ago

You can see that the values are the same by comparing the values from the official Adobe Flex documentation for the ResizeEvent to the flexlib MDIWindowEvent.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/events/ResizeEvent.html#RESIZE https://github.com/flex-users/flexlib/blob/master/library/src/flexlib/mdi/events/MDIWindowEvent.as#L47

Mansuro commented 11 years ago

The issue that I'm having is that the MDI example doesn't work for me at all, I have a runtime error.