NOTE: This is not a copy of this question as the answer did not help me.
I have my main file (Main.mxml), and I have a main AS file (main.as). main.as is included by Main.mxml via <fx:Script source="main.as"/>
. In main.as, I want to change the currentState of Main.mxml. How would I go about doing this?
Things I have already tried:
this.parent.currentState = "c_main";
this.parentDocument.currentState = "c_main";
this.parentApplication.currentState = "c_main";
- The answer in this question.