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 !
If you are using your component in main.xml, try using parentApplication.currentState
That worked !
Thanks a Lot !!!