Have you tried the includeIn and excludeFrom properties when using states? -Mark
-----Original Message----- From: Tintin [mailto:[email protected]] Sent: Monday, October 13, 2014 9:33 AM To: [email protected] Subject: How Should I Dynamically Switch Component? Hello I am developing an application with an MVC structure. In my 'View' I have an MXML component, let's call it Main_View, in which I want to display only 1 of 3 different child MXML components depending on values in my 'Model'. At first I thought I would create 3 States and bind the currentState to a property in my Main_Presenter ActionScript class in my 'Presenter' package like this: It appears though that you can't bind the currentState property. How can I switch components as values in my MainPresenter change please? Thank you. -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/How-Should-I-Dynamically-Switch-Component-tp8378.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
