Highlighted

Fullscreen mode broken on OS X

New Here ,
Jun 20, 2014

Copy link to clipboard

Copied

If you try the following code in AIR for OS X and Windows you find that Windows correctly DOES NOT fire the ACTIVATE event when fullscreen is executed but OS X does:

window.nativeWindow.visible = true;

window.nativeWindow.stage.displayState = runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE;

window.nativeWindow.addEventListener(air.Event.ACTIVATE, function() {

  air.trace('ACTIVATE');

});

window.nativeWindow.addEventListener(air.Event.DEACTIVATE, function() {

  air.trace('DEACTIVATE');

});

I've filed a bug for it in bugbase... but not sure how long Adobe take to fix bugs in AIR... and this is preventing my app from working as expected.

The reason is because I need to fire the fullscreen mode on activation of the window (fired after a user has deactivated the window) so it forces fullscreen mode for the app.

window.nativeWindow.addEventListener(air.Event.DEACTIVATE, function() {
air.trace('DEACTIVATE');

window.nativeWindow.minimize(); // this hides the window

});

window.nativeWindow.addEventListener(air.Event.ACTIVATE, function() {

  air.trace('ACTIVATE');

  window.nativeWindow.stage.displayState = runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE; // reshows the window and makes it fullscreen

});

This works perfectly on Windows. But because OS X fires the event on fullscreen, it calls fullscreen again... and occasionally creates duplicate windows (which is another bug that only happens on OS X if fullscreen is called more than once and doesn't happen on Windows - again filed on bugbase).

Any ideas on how I can get around this in the mean time, until Adobe fixes the bugs?

TOPICS
Development

Views

184

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Fullscreen mode broken on OS X

New Here ,
Jun 20, 2014

Copy link to clipboard

Copied

If you try the following code in AIR for OS X and Windows you find that Windows correctly DOES NOT fire the ACTIVATE event when fullscreen is executed but OS X does:

window.nativeWindow.visible = true;

window.nativeWindow.stage.displayState = runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE;

window.nativeWindow.addEventListener(air.Event.ACTIVATE, function() {

  air.trace('ACTIVATE');

});

window.nativeWindow.addEventListener(air.Event.DEACTIVATE, function() {

  air.trace('DEACTIVATE');

});

I've filed a bug for it in bugbase... but not sure how long Adobe take to fix bugs in AIR... and this is preventing my app from working as expected.

The reason is because I need to fire the fullscreen mode on activation of the window (fired after a user has deactivated the window) so it forces fullscreen mode for the app.

window.nativeWindow.addEventListener(air.Event.DEACTIVATE, function() {
air.trace('DEACTIVATE');

window.nativeWindow.minimize(); // this hides the window

});

window.nativeWindow.addEventListener(air.Event.ACTIVATE, function() {

  air.trace('ACTIVATE');

  window.nativeWindow.stage.displayState = runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE; // reshows the window and makes it fullscreen

});

This works perfectly on Windows. But because OS X fires the event on fullscreen, it calls fullscreen again... and occasionally creates duplicate windows (which is another bug that only happens on OS X if fullscreen is called more than once and doesn't happen on Windows - again filed on bugbase).

Any ideas on how I can get around this in the mean time, until Adobe fixes the bugs?

TOPICS
Development

Views

185

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 20, 2014 0
New Here ,
Jun 23, 2014

Copy link to clipboard

Copied

Any updates? The bugs haven't had any progress on them over at bugbase either. Thanks.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 23, 2014 0