tags:

views:

1152

answers:

3

Hi,

Im using states in my flex form application.

The base state is the regular form. I then have an advanced form button which calls the advanced state. Once inside the advanced state form if a user enters invalid data an error will be displayed using another error state which just adds a text field to the lastChild element of the advanced state,

the problem im having is that when the error state is kicked off, instead of displaying the error below the advanced form it instead goes back to the base state.

Is it possible to calls a state from inside another state?

A: 

I'm not familiar with states, but judging from the documentation, isn't that what the basedOn attribute of the State object is for?

David Hanak
A: 

awesome, taht did the trick

combi001
A: 

you can check out the flex states tutorial here :

http://askmeflash.com/tutorial/0/how-to-create-website-in-flex-tutorial-my-first-flex-website