If that doesn't work on it's own, you might also try using the NativeApplication's activeWindow property, in case the stage's nativeWindow property isn't initialized at the time the ACTIVATE is dispatched: