Thanks for posting your Cairngorm 2 example.  Seeing it in action
really helped pull all the pieces of Cairngorm together for me.  I
have only been using Cairngorm for a few days, but it is very similar
to a MVC micro-arcitecture I wrote from scratch for use with AS2 (it
took me 18 months to get it to a decent re-usable place ...).

I am trying to get a feel for the best way to handle changing states.
 I have a bunch of MyView.mxml views that I have organized in a
ViewStack.  It was working ok when I was making
ViewStack.selectedIndex changes directly from the Views.  Now that I
am using Caringorm I want to bind the ViewStack to the ModelLocator
and make changes to the ModelLocator only from Commands.  (I think
that is the 'correct' way to do it right?)

My problem is that I am not eactly sure how to do it other then the
way you did in your example project.  You wrote:
[QUOTE]
// only do this if you have a 4 hour deadline;
// some people think state vars are good.  I think
// they are evil... but man, they sure work in a pinch.
public static const STATE_READY:String = "ready";
public static const STATE_SEARCHING:String = "searching";
public static const STATE_DONE:String = "done";
[/QUOTE]

Will you, or someone else, please instruct me on a better way to
change ViewStates?

Also, other then this forum the only documentation I can seem to find
on Cairngorm2 is here:
http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html and the
examples there are a bit out of date.  The home page is also has not
been updated since the Flex 2 retail release:
http://www.richinternetapps.com/archives/cat_cairngorm.html 

Does anyone know where I can get better documentation and samples that
are Flex 2 specific?  

thanks

--jason




--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Ben wanted to see a WebService example via Cairngorm 2.  I figured it'd 
> benefit others as well.  It utilizes the Amazon Search API to search
for 
> books.  If you do not have an Amazon API key, you can get one for
free at 
> amazon.com; takes about 25 seconds to sign up.
> 
> Source
>
http://dev.jessewarden.com/flex/webserviceexample/srcview/WebService_Cairngorm2_Example.zip
> 
> http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html
> 
> --JesterXL
>







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