Search Results

Search found 2 results on 1 pages for 'herter'.

Page 1/1 | 1 

  • 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?

    Read the article

  • ActionScript 3 - access variables in main application class from instantiated class

    - by Herter
    I have a initApp.as which instantiates a class which needs to access the "currentState" property and the States array as well. However we cannot get this to work as we cannot see how we can access this information. Within initApp.as currentState is accessed via "this.currentState". This does not work in the class which is instatiated within initApp.as. The following error is thrown: "Access of undefined property currentState." Anyone know how this can be solved?

    Read the article

1