Hi,
I have a module that runs inside a popup window. It runs fine the 1st
time I run it, but after it runs successfully (and I unload the
module), after I create and use a 2nd popup using the same module, it
fails with this error:
TypeError: Error #1034: Type Coercion failed: cannot convert
com.adobe.createmeeting.events::[EMAIL PROTECTED] to
com.adobe.createmeeting.events.CreateMeetingEvent.
The error occurs while executing a piece of typical Cairngorm-style
code:
override public function doExecute(event:CairngormEvent):void {
var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);
If I define the class CreateMeetingEvent and instantiate it in the
parent application, then this error does not occur, but I do not want
to define it in the parent application, since it does not belong
there.
My guess is that this has to do with the issue of ApplicationDomains
and class loading. Somehow, when I create the 2nd popup with the same
module, it is looking for the class definition that belonged to the
now-defunct class module.
Can anyone suggest what is the best way to fix this?
Thanks,
Henry