Re: [flexcoders] Modules and Cairngorm

2007-01-26 Thread Martin Wood-Mitrovski
I just had the same error and it was because i was trying to re-use event 
instances rather than dispatching new ones each time. But i wasnt using 
modules, 
just a normal Cairngorm app.

I was going to look into it to find out exactly what was happening but I just 
dont have the time at the moment.

maybe this is enough of a clue for someone else to say why :)

Bjorn Schultheiss wrote:
 Hey Can anyone give me the lowdown on this error
 
 TypeError: Error #1034: Type Coercion failed: cannot convert 
 flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent.


Re: [flexcoders] Modules and Cairngorm

2007-01-25 Thread Todd Breiholz

It would appear that you are trying to use the CairngormEventDispatcher to
dispatch a standard Flash event instead of a CairngormEvent (or subclass).
I'd have to see the code to be more specific though.

Todd

On 1/24/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Hey Can anyone give me the lowdown on this error

TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent
.
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent
()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\control\CairngormEventDispatcher.as:113]
at com.adobe.cairngorm.commands::SequenceCommand/executeNextCommand
()[C:\dev\swat\projects\ac_emea\Cairngorm\com\adobe\cairngorm\commands\SequenceCommand.as:134]

To give some context i've got 3 modules in a viewstack, when i returned to
a previously viewed child 'module' i get this error.
Any help would be appreciated.


Regards,

Bjorn