3 Replies Latest reply on Jun 18, 2008 6:17 AM by anirudhs

    NativeWindow alwaysInFront on Startup

    Ozonesaq
      I'm trying to set my application's alwaysInFront property on startup based on a saved preference. I can set it fine using a checkbox toggle, but when I try to set it at startup in a windowComplete handler, it has no effect. Here's the basic idea:

      <mx:WindowedApplication windowComplete="windowInit()">
      ...
      private function windowInit():void
      {
      stage.nativeWindow.alwaysInFront = prefs.data.alwaysInFront; // this never works even if I force true
      }

      Any ideas? Thanks.