As I perused the great sample app Jesse put together
(http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html),
I came across his simultaneous implementation and criticism of state
vars inside ModelLocator.

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

I need to implement something similar in my app as basically the whole
thing resides inside a TabNavigator. I would like a simple, reliable
way to direct the app to change states/tabs and this seems like a
decent approach. What are people's opinions on this approach? Have a
better alternative? Jesse, can you expound on why you think they're evil?

Thanks,
Ben






------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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