Changing the State of the application from a custom component

Hello, I have several custom components that are included in the original application.

When I try to change the State of a custom component, I get an error saying "undefined state: name of the State." How can I change the State of the application from a custom component? All States are defined in the original application.

@linrsvp,.

If you are using Flex3 try Application.application.currentState = "somestate;

If you use Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate;

Don't forget to import the namespaces corresponding to the above.

Thank you

Jean Claude

Tags: Flex

Similar Questions

Maybe you are looking for