Hi Riku,

Welcome to the list.  Cairngorm asserts that "state" and "model" are synonymous.  One approach to manage the state of a view, is to maintain state variables in the ModelLocator that are directly bound to state properties in a view.  By utilizing binding, the displayed state of the view is automatically updated, when a change is made to the associated state variable in the ModelLocator. You can see a simple f2b3 example here:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=422 

In regards to your question concerning commands, the example above also demonstrates how to dispatch a simple CairngormEvent, which the FrontController uses to execute a command. 

Personally, as well, I experienced some confusion while creating my first Cairngorm-based Flex application.  My advice is to stick with it.  Read the articles again and let the concepts sink-in some more.  Cairngorm may still seem a little complicated to you right now, but believe me, in no time you will come to appreciate its' simplicity. 

Best Wishes,
Tim Hoff


--- In [email protected], "Cameron Childress" <[EMAIL PROTECTED]> wrote:
>
> Riku,
>
> Welcome to the list! I'm at the exact point you are. So far, here
> the experice that's helped me along.
>
> First, if you haven't already, read the six article series on the Flex
> dev center called "Developing Flex RIAs with Cairngorm
> Microarchitecture" (under "best practices").
> http://www.adobe.com/devnet/flex/
>
> Second, for your specific viewStack/currentState question, check out
> this posting:
> http://www.mail-archive.com/[email protected]/msg25747.html
>
> It's taken me a little time to understand the spirit and function of
> Cairngorm, but those articles really helped me out quite a bit.
>
> -Cameron
>
> On 5/31/06, riku.raisanen [EMAIL PROTECTED] wrote:
> > First of all, hello flexcoders. I'm Riku Räisänen, previous PHP and
> > current Ruby programmer. Looking forward to share experience and
> > knowledge in this board.
> >
> > I'm in the very early stages of building a rather big Flex
> > application. The application should be robust and easy to extend thus
> > I've tried to build it with Cairngorm.
> >
> > Cairngorm has a steep learning curve. It's all too
> > javaish to me. After reading every document I could get my hands on,
> > I'm finally able to grasp some of it. I've now successfully build
> > models and VOs and controllers for a login system. The Views are also
> > in place. However, I can't find a good way to control/switch Views.
> >
> > Recently I took a glance at NoteTag. NoteTag solves the problem by
> > uing ViewStack. I'm still not quite satisfied with the approach.
> > Without further studying, it would seem that I can't use
> > transitions with ViewStacks. Flex sells due it's sexyness and I don't
> > want to miss the effects.
> >
> > I almost gave up on using Cairngorm due to this problem and I can't
> > seem to find a solution. I'm new to AS and Flex anyway. There's
> > ViewLocator and ViewHelper, but reading the NoteTag comments it's not
> > really needed at all. There must me some magic part of Cairngorm that
> > reacts to changes and does all the viewchanging and comman calling. I
> > like the rails approach where the action is optional.
> >
> > Are there any simplier (micro)frameworks for Flex than Cairngorm? Or
> > rather, could you please tell me how you use/switch views in your flex
> > applications.
> >
> > Any other tips would also be welcome. I'm merely beginning mya RIA
> > journey.
> >
> > -Riku Räisänen
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Cameron Childress
> Sumo Consulting Inc
> http://www.sumoc.com
> ---
> cell: 678.637.5072
> aim: cameroncf
> email: [EMAIL PROTECTED]
>



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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to