We have also faced this problem.
In alpha 1, it looks like events dispatched by commands (extending
EventDispatcher) are not caught by the controllers.

Simple workaround, use the Application.application to dispatch events in
commands.

For example, in the SequenceCommand.as replace
Line 123 : dispatchEvent( nextEvent ); 
by
Line 123 : Application.application.dispatchEvent( nextEvent ); 
(you might need to import mx.core.Application)

It should solve your issue.

Benoit Hediard

-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Simon Barber
Envoyé : lundi 13 février 2006 13:00
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Cairngorm 2 SequenceCommand issues

Hi,

Here are 5 steps that lead to my issue.

1. The user types his username, password and clicks login.
2. The LoginEvent is dispatched with the user details.
3. The LoginCommand execute method is called and my Application Delegate
calls the remote method on the server.
4. onResult callback is called when the data returns from the server and i
set all the relevant Application model data.
5. The LoginCommand extends the SequenceCommand so that i can set the
nextEvent property and call executeNextCommand method.

The last point is where the problem lies. I have stepped through the code,
the executeNextCommand gets called and so does the dispatchEvent
(event) but it never executes the next command in the sequence.

Any ideas would be greatly appreciated.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to