Access "currentState" from other classes?
        Posted  
        
            by Herter
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Herter
        
        
        
        Published on 2010-05-06T07:45:31Z
        Indexed on 
            2010/05/06
            7:48 UTC
        
        
        Read the original article
        Hit count: 167
        
actionscript-3
|flex
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?
© Stack Overflow or respective owner