Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  

State in flex



Share on Google+Share on Google+

State in flex
1 Answer(s)      6 years and 10 months ago
Posted in : Flex

just tell me about
What is state? what is the difference between states and ViewStack?
Please give me an example.

Thanks in advance
View Answers

October 15, 2010 at 4:33 PM

State: The State class defines a view state, a particular view of a component. For example, a product thumbnail could have two view states; a base view state with minimal information, and a rich view state with additional information. The overrides property specifies a set of child classes to add or remove from the base view state, and properties, styles, and event handlers to set when the view state is in effect.
The syntax of state in flex4 are following :
<s:State name="login"/>
<s:State name="registration"/>

1. View Stack is to handle different MXML file eg TAB control and states is the transition within single MXML file.
2. 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.
3. ViewStates are virtual state of an existing page apearing at an instance i.e. only one state can be shown at a time while viewStack are collection of different view containers which can be shown at a time.


Related Tutorials/Questions & Answers:
State in flex
State in flex  Hi.... just tell me about What is state? what.... Thanks in advance  Ans: State: The State class defines a view state... view states; a base view state with minimal information, and a rich view state
Button hover state
Button hover state  hi........ How do I manually trigger a buttons hover state in flex? please tell me about it.. Thanks   Ans: button.setStyle('skin', button.getStyle('upSkin')); I think it will useful for you
Skin in flex
to skin a component in flex? Please give me the answer ASAP Thanks  ... graphics, called graphical skins in Flex. 2. Programmatic skin : A vector graphic, called a programmatic skin in Flex. 3. Stateful skin : A type of programmatic
Caringorm in flex
Caringorm in flex  Hi.... What is caringorm ? please tell me about that Thanks   Ans: Cairngorm(Flex Framework): Cairngorm was one... complex state and data synchronization between the client and the server, while
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider   You can visit the following link for detailed tutorial on the topic. May this will be helpful to you.
Flex basic
Flex basic  Hi...... please just tell me about Can we run Flex applications in MAC? Thanks
Flex and Java
Flex and Java  hi..... Please give similiarities between Java and Flex. Thanks
Flex event
Flex event  Hi.... Please tell me about How to create your own event in flex? Thanks
Flex basic
Flex basic  Hi.... Can flex application communicate with each other on the client? please give me the answer ASAP..... Thanks   Ans: See the LocalConnection API In the flex documentation. Thanks
Flex and Java
Flex and Java  Hi.... What are the config files that are used to connect Java and Flex applications? Please provide the solution of this prob so i connect java and flex.... Thanks
Flex and Java
Flex and Java  Hi...... Give the name of Collection which can be mapped to java and Flex and vice-versa. please give the name of all collections which is used in flex and java.. Thanks
Flex as a Service
Flex as a Service  Hi....... just tell me about How do I run Flex as a service? please give me an example if possible Thanks  Ans: Flex is not a server. It is the pert of your web application. you can use
Flex Updates
Flex Updates  Sir, first Thanks For Good Resource for Every One! i am New to Flex... but,in Current Updates Tell Us Flex Becomes To down!(Sorry To say).. May I know Future groom & Advantage of Flex Over Other Web
Flex basic
Flex basic  Hi.......... I want to know about What is localToGlobal and globalToLocal in flex? please give me ans ASAP..... Thanks
Flex application
Flex application  Hi..... What kind of applications you can create from flex? please give the name of these applications....... Thanks
Flex basic
Flex basic  Hi.... can you tell me about Is Flex OS specific or operating system independent? please give the description about it....... Thanks
Flex basic
Flex basic  Hi.... I want to know Do we need any plugins to run Flex applications? please give the ans ASAP....... Thanks
Flex difference
Flex difference  Hi.... please tell me about What is the difference between Flex 2.0 and Flex 3.0? Thanks  Ans: There are some advantages of Flex3.0 over Flex 2.0 they are following: 1. Faster compilation time
Flex with JSP
Flex with JSP  i want to draw chart in jsp page using flex. how can i do that? any solution??   Flex charts You can visit the following links:
Adding a flex table in another flex table column
Adding a flex table in another flex table column  how to add a flex table in another flex table column
Flex basic
Flex basic  Hi...... Please tell me about What are non-visual components in flex? What class do they extend? please give the name of these components....... Thanks
Version of com.thesett>state dependency
List of Version of com.thesett>state dependency
Flex Managers
Flex Managers  Hi... Please tell me about How to override Managers? give me an example for that.... Thanks
Image in Flex
Image in Flex  Hi..... Can you manipulate images using Flex programs? please give me the example....... Thanks
Flex event
Flex event  hi...... How to capture and event if the component is disabled? please give an example..... Thanks in advance
Metadata in flex
Metadata in flex  Hi......... please tell me about the meta data in flex. Thanks
XML in flex
XML in flex  Hi... just tell me about What is e4X and XML in flex? Thanks
Mask in Flex
Mask in Flex  Hi...... Is it possible to create 'gradient mask' in flex? please give me the ans ASAP..... Thanks in advance
Adobe flex
Adobe flex  Hi... please give me the description about What is Adobe Flex? Thanks