Search code examples
actionscript-3stage

How to access stage in a class that is not a DisplayObject?


How do I access the stage in Actionscript 3 in a class which is not my main class and not a displayobject?


Solution

  • the easiest way is to use a global object

    http://github.com/inruntime/AS3-Global-Object

    this page has examples of how to set and retrieve objects from any class.