View state as name suggests while working in flex when you want to switch from one state to another state <mx:state> are used.
For example if you want to create login and register modules. so your first state is register and second state is login. so you can keep the register code in one state and set it as start state and keep the login code in another state. and after sucessful registration you want the login state to be enabled.. so you can achieve that using actionscript.. for all above you need to make use of <mx:state> below is the example i referred while accomplishing that…
Here are some of great resources for flex examples, source codes and snippets, other developers code..
the above site have source code of examples visible..
code snippets from various developers
New to flex, dont know where to start from i will suggest you to first learn how flex components works.. really great site.. start with basics components, learn and practise yourself.. gradually you will master all components.. really flex 3 has wide ride range of components ranging button, tab, date, effects, chart and other visualisation controls.. you can check it out here..
Are you a designer or developer or programmer or manager or architect and want to learn flex.. here is a great resource i came through while myself learning flex. It gives live examples, with video training, examples for downloads, quick starts.etc…
Also have a look at my previous post of learning flex in a week