AIR 3.5 Fullscreen StageScaleMode.SHOW_ALL bugg
Hi,
When I try to run this simple application with a button to toggle fullscreen on/off, the button itself is supposed to stay centered in the middle of the screen but it doesn't.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="1280"
height="800"
applicationComplete="stage.scaleMode = StageScaleMode.SHOW_ALL"
>
<fx:Script>
<![CDATA[
private function toggleFullscreen():void
{
if (stage.displayState == StageDisplayState.NORMAL)
stage.displayState = StageDisplayState.FULL_SCREEN;
else
stage.displayState = StageDisplayState.NORMAL;
}
]]>
</fx:Script>
<s:Button label="Toggle Fullscreen" verticalCenter="0" horizontalCenter="0" click="toggleFullscreen()" />
</s:WindowedApplication>
Am I doing something wrong?
Thank you for your help ![]()
