Re: [flexcoders] Cairngorm - design question, need suggestions-best practices

2007-02-21 Thread Ben Yee

hey yigit,

check out flex data services
http://www.adobe.com/products/flex/dataservices/
it comes at a cost $$$ if you can afford it, it'll look after pushing data
to your app which is what you're asking.

can also check out http://www.themidnightcoders.com/weborb/php/index.htm

cheers
ben

On 2/22/07, Yiðit Boyar [EMAIL PROTECTED] wrote:


  hi all;
i just can not believe there is no reply to my post.  has not anyone faces
the same question ?
or lazy solutions enough for you? or our group started to overflow and not
answer needs...
 maybe a newsgroup/forum is needed..


- Original Message 
From: Yiðit Boyar [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 20, 2007 9:35:55 PM
Subject: [flexcoders] Cairngorm - design question, need suggestions-best
practices

 hi all;
i'll buld an application in which the same data (or sth related) is shown
in many views; so i will user cairngorm. (phpmysqlamfphp)
but the problem is that other clients may change the data(base) so my
model values must be updated in these cases.
this seems to be a common problem with MVC so can you please share your
solutions and best practices ?
the first thing that comes to my mind is to check database for changes
periodically, and most possibly this is the only way;
but many procedures can be used in this also; so i need suggestions before
starting coding.
thanks..

yigit

--
Expecting? Get great news right away with email 
Auto-Check.http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
Try the Yahoo! Mail 
Beta.http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html


--
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! 
Travelhttp://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--%0Ato
 find your fit.

 



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