Friday, March 27, 2009

What is state what is the difference between states and ViewStack

Question :What is state? what is the difference between states and ViewStack?
Answer :View Stack is to handle different MXML file eg TAB control. And states is the transition within
single MXML file
ViewStack should be used were there is complete change in the controls used and States should be
used when you just want to add or remove a few components based on certain conditions.
Login/Registration/Forgot password is the best example for using States as each page will either add
or remove to the already existing one.

No comments: