Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>//instead of just calling activate(); //call nativeApplication.activate() //or even better nativeApplication.activate(nativeWindow); </code></pre> <p>Update based on OP's input: if you have multiple windows open for the application, use:</p> <pre><code>nativeApplication.activate(nativeApplication.openedWindows[0]); </code></pre> <p>If you are not in the main <code>WindowedApplication</code> class, you can use the static property <code>NativeApplication.nativeApplication</code> to get a reference to the singleton object.</p> <p><a href="http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html#activate()" rel="nofollow noreferrer">WindowedApplication.activate()</a></p> <blockquote> <p>Activates the underlying NativeWindow (even if this application is not the active one). </p> </blockquote> <p><a href="http://livedocs.adobe.com/flex/3/langref/flash/desktop/NativeApplication.html#activate()" rel="nofollow noreferrer">NativeApplication.activate(window:NativeWindow = null)</a></p> <blockquote> <p>Activates this application. If the operating system allows activation, then the specified window is activated and brought to the desktop foreground; that is, in front of the windows of other applications. (If the window parameter is null, then a visible window of this application is activated.)</p> </blockquote> <p>livedocs is not clear on why this is happening. It says <code>activate()</code> activates the underlying native window - one would expect it to be brought to the front when it is activated, but that's not happening.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload