But when it is dispatched it throws:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.CloseEvent.
at flash.events::EventDispatcher/dispatchEvent()
at flashvnc.view::VncPanel/flashvnc.view:VncPanel::handleDisconnect()[C:\Program Files\IFBIN\examples\xbe\ebfa163f6f50ac991d46b283effd8c2384611f88\FlashVNC_B2\flashvnc\view\VncPanel.mxml:375]
at flashvnc.view::VncPanel/___TitleWindow1_close ()[C:\Program Files\IFBIN\examples\xbe\ebfa163f6f50ac991d46b283effd8c2384611f88\FlashVNC_B2\flashvnc\view\VncPanel.mxml:23]
at flash.events::EventDispatcher/dispatchEvent()
at mx.containers::Panel/mx.containers:Panel::closeButton_clickHandler ()[C:\dev\beta3\sdk\frameworks\mx\containers\Panel.as:1520]
It is only when it tries to dispatch Event.CLOSE, if I change it to "myclose" or something it is fine.
I have coded up the same kind of thing an a test app and it seems to work fine.
the line of code is just:
dispatchEvent(new Event(Event.CLOSE));
?Any ideas? Is it something to do with the fact that the handler is the handler for Event.CLOSE? (but in a different event hierarchy?)
Thanks
--
david
"May the forces of evil become confused on the way to your house."
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.