Here's what I'm getting from all the manual reading I've been doing over the past week. Others may correct me or clarify as needed.
 
- Think of the base state as the "home page"... it's the initial state of the app or component when the user browses to it. I can't think of a good reason why it would ever be empty unless you wanted to implement some kind of transition or effect immediately upon loading it.
- In the larger sense of UI design, HTML "pages" are addressed in the Flex metaphor with ViewStacks attached to a navigator. Use this for macro changes in the interface.
- View states are used to display incremental changes in state. Sounds like you are using that correctly insofar as you describe it... however, depending on how your user interface is designed and what you're trying to accomplish, the "Detail" state you describe could also be just an incremental change to the "Master" state with the Master state remaining visible. Also, the "Master" state could be your base state since it's empty and that's the first thing the user sees.
 
Also, and more generally, don't forget that Flex development is based on components. So it may be appropriate to shelter your calendar "module" in a component if you haven't already done so...
 
Kevin
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gotgoose09
Sent: Wednesday, July 26, 2006 10:42 AM
To: [email protected]
Subject: [flexcoders] Am I using States correctly?

Coming from a Flash point of view, I am using mx:State as I used Forms
in Flash. In my current project I have a "Master" state that holds a
DataGrid with calendar events in it and some buttons to manipulate the
data. I have a create and edit button that go to a "Detail" state that
holds a form to create a new event or edit an existing one.

In my code, the States consist of one AddChild that holds the ui. Each
state is based off of the base state, which is empty. What I'm
wondering is, is this the correct usage of States or is there a better
way to do this?

__._,_.___

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




__,_._,___

Reply via email to