Hi,

Cairngorm does not work well with modules.

You should take a look at modular (
http://lab.arc90.com/2007/10/modular_1.php).

It solve most of the cairngorm problems with modules.

I made something similar, but in my case, every module was a TitleWindow. I
achieve this with this metatag:

[Frame(factoryClass="mx.core.FlexModuleFactory")]

Example:

[Frame(factoryClass="mx.core.FlexModuleFactory")]
public class ReservaWebBaseModule extends TitleWindow implements
NetSarChildModule

In my specific case, I would like to work with my modules as common
TitleWindows, without loosing its module capabilities (load, unload, etc)

Hope this helps,

Regards,

PS

On Mon, Oct 6, 2008 at 6:28 PM, hr1ny <[EMAIL PROTECTED]> wrote:

>   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
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/

Reply via email to