Re: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Tom Chiverton
On Monday 15 January 2007 00:05, Robin Burrer wrote:
 I started sending new cairngorm events in the on result method of my
 commands but actually I find this approach rather messy.

This comes up all the time on the list.
The default answer is now 'search the archive' I think :-)

-- 
Tom Chiverton
Helping to preemptively scale high-yield solutions



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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


Re: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Ben Yee

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









 



RE: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Grant Davies
This looks like a command sequencer function:
 
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/comm
ands/SequenceCommand.html
 
not sure if that's available in the version you are using.
 
 
...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Burrer
Sent: Sunday, January 14, 2007 7:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] should cairngorm commands call other commands.



 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

 
attachment: small.jpg


RE: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Robin Burrer
Great, thanks everybody for their replies!

 

Robin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Monday, 15 January 2007 11:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] should cairngorm commands call other commands.

 

This looks like a command sequencer function:

 

http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/comm
ands/SequenceCommand.html
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/com
mands/SequenceCommand.html 

 

not sure if that's available in the version you are using.

 

 
...
 b l u e t u b e i n t e r a c t i v e.

.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Burrer
Sent: Sunday, January 14, 2007 7:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] should cairngorm commands call other commands.

 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

 

attachment: image001.jpg


[flexcoders] should cairngorm commands call other commands.

2007-01-14 Thread Robin Burrer
 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

 

 

 

 



Re: [flexcoders] should cairngorm commands call other commands.

2007-01-14 Thread Bjorn Schultheiss

Hey Robin,

Check out com.adobe.cairngorm.command.SequenceCommand

The standard way is to define the nextEvent in the command and then  
call executeNextCommand.


If you need to define your events in your view i have a utility for  
it and i posted the info here http://cairngormdocs.org/blog/?p=27





Regards,

Bjorn


On 15/01/2007, at 11:05 AM, Robin Burrer 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















RE: [flexcoders] should cairngorm commands call other commands.

2007-01-14 Thread Robin Burrer
Thanks Bjorn

 

I'll check out the sequence command and your utility as well.

 

Cheers

 

 

Robin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Monday, 15 January 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] should cairngorm commands call other commands.

 

Hey Robin,

 

Check out com.adobe.cairngorm.command.SequenceCommand

 

The standard way is to define the nextEvent in the command and then call
executeNextCommand.

 

If you need to define your events in your view i have a utility for it
and i posted the info here http://cairngormdocs.org/blog/?p=27
http://cairngormdocs.org/blog/?p=27 

 

 

 

 

Regards,

 

Bjorn

 

 

On 15/01/2007, at 11:05 AM, Robin Burrer 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