javascriptairnativewindow

Adobe Air - window.nativeWindow undefined


I have an Adobe Air Application opening a Window from menu tray. The html content have a javascript code doing alert(window.nativeWindow) on load.

I have correctly included AIRAliases.js. Is there restriction about nativeWindow ?

My goal is to:

But it seems nativeWindow is undefined. And window.close() did nothing


Solution

  • Well in fact it is a SandBox security restrcition.

    The only way to do so is to:

    There is a full explanation in the security chapter of AdobeAIR API