2 Replies Latest reply on Apr 14, 2008 10:42 AM by dubbelugh2

    Get reference to the stage in a AS Class

    dubbelugh2
      Hello,

      I've created an AIR app with the minimeze() and close() options. Now these functions are handled in the MainApp.mxml of the application. But I want to move them to a class, so I don't have any AS in my MXML file.

      My app works like this now:

      MainApp.mxml creates a new instance the Main.as class (which extends MainVisual.mxml) by calling <mainVisual:Main /> in the MainApp.mxml
      MainVisual.mxml extends Canvas.

      There I handle all visual elements of my app, but I can't get a reference to the stage.nativeWindow here. Does anyone knows how to do this?

      Thanks!