Access "currentState" from other classes?
- by Herter
I'm making a little application in Actionscript 3. In my initApp.as I have created another class which needs to edit the currentState, which is only accessible from the main .as (initApp.as). I found a solution such that I can reach the currentState property from my other class: Application.application.currentState.
This is however not a good solution as it couples the classes too much.. is there a better way of editing the currentState from other classes?