2 Replies Latest reply on Mar 2, 2010 5:08 AM by aniket19923

    Change states from different file.

    aniket19923

      Hey guys...

      Giving the flex in a week a try..

      So the problem is that my main.mxml is in the (default Package), it has 2 states, say state1 and state2.

      Now, i've got another package named as component, in there is a file named intro.mxml..

      Now how can i change the state in main.mxml from state1 to state2 from a mouseclick event in intro.mxml.....

      I tried doing, main.currentState= 'state1' in the click function but its not working!

       

      I'm still at a basic stage and still learning, so any help would be appreciated !

      Thank You !