If both do the same why do you want to do this. If this is only for 
learning purposes, one way is to save the references of your views 
in ModelLocator (during initialize) and then assign those references 
to the selectedChild.




--- In flexcoders@yahoogroups.com, "Oriol Gual" <[EMAIL PROTECTED]> 
wrote:
>
> Just one more point, I've tried the Cairngorm login example, and 
after
> changing the namespaces to http://www.adobe.com/2006/mxml, I can 
compile but
> I get this error:
> 
> Implicit coercion of a value with static 
type 'mx.core:UIComponent' to a
> possibly unrelated type 'mx.core:Container' in line 68, which is:
> 
> <mx:ViewStack id="appView" selectedChild="{ getView( 
model.workflowState )
> }">
> 
> If look at it, and viewstack has no selectedChild propertie, so if 
I change
> it to: selectedIndex="{ model.workflowState }" it works. My 
question is, how
> should it be if I want to return a view instead of an int?
> 
> Thanks,
> 
> Oriol.
>







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