Hi Robyn,

Another way you can do this is by extending your class to use the
SequenceCommand

That way you can set your next command in your constructor and call this on
your're command result

check out
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/commands/SequenceCommand.html

hope that helps
cheers
ben

On 1/15/07, Robin Burrer <[EMAIL PROTECTED]> wrote:

    Hi all,



I'm working on flex application using the cairngorm framework and I ask
myself if commands should call other commands.

E.g. another event is triggered in the result method of the command. Note
that I actually run in this problem when I try to handle my client
application logic, not for server requests.



I started sending new cairngorm events in the on result method of my
commands but actually I find this approach rather messy.

Should I dispatch all events in my views? That however means that my views
are handling some of my application logic. I think they are not supposed to
do that…

Or should I create a new form commands that only manage other commands?
That would add another level of complexity though …



Robin









Reply via email to