1 Reply Latest reply on Jul 25, 2008 9:46 AM by VarioPegged

    Is The Main App 'stage'?

    wkolcz Level 1
      I am working on a login / timeout section of my application. It works great as far as clicking the person to a login box if they are inactive, however I cannot seem to get the app to recognize activity. I am trying to register these events, but they don't seem to work.

      Is the main application still the stage? Something like:
      public function initApp() :void {
      if (stage != null)
      {
      stage.addEventListener(MouseEvent.MOUSE_MOVE, handleUserActivity);
      stage.addEventListener(MouseEvent.CLICK, handleUserActivity);
      stage.addEventListener(KeyboardEvent.KEY_DOWN, handleUserActivity);
      }
      }