Hi Michelle,

Have a go at using the viewStack container.
create a property:Number in your modelLocator and bind the
selectedIndex property of your viewstack to the property on your model
Locator.
for example

<mx:ViewStack
selectedIndex="{ModelLocator.getInstance().currentViewIndex}" >

check out some of the examples on Alex Ulhmanns blog or try
cairngormdocs.org :)

Bjorn

--- In [email protected], "Michelle Grigg" <[EMAIL PROTECTED]>
wrote:
>
> Greetings,
> 
> I am having a bit of a problem working out exactly how to navigate
> through my application which will be using the Cairngorm 2
architecture.  
> 
> It currently has the following views: a Login page, a Task List, a 
> Task and a Finish page.  The task list can have any where up to 8
> tasks displayed so the user will be switching between Task List and
> Task quite often.
> 
> The flow between these views will be accessed through button events
> (ie, login button, or a start button to start the task etc).  There
> will be only one View shown to the user at any one time.
> 
> I hope that all makes sense.
> 
> Anyhoo.
> 
> I have read about both the ModelLocator and also
> ViewHelper/ViewLocator, and am yet to have that warm and fuzzy moment
> where everything just suddenly makes sense, and thus know which is to
> be used where.
> 
> So my question:  What would be the best way to go about handling the
> change of Views within this application?
> 
> Thanks in advance,
> Michelle
>





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

Reply via email to