Copy link to clipboard
Copied
My app is set up in cs6 with air3.4 desktop with as3 scripts.
I am running without chrome as I made my own.
I am on a windows 10 system if that might be an issue.
What the problem is, is that in full screen mode, I lose my border around my app.
As it is my self made border, and part of my stage, why is it getting cut off!?
The border is 6mm. So in total I am losing 12mm vertically and horizontally.
The app is centred, so is 6mm off all the sides.
Why is it doing this, and how can I fix it?
import flash.display.NativeWindowResize;
//// set window variable
var window=stage.nativeWindow;
///// center program to desktop
stage.nativeWindow.x = (Capabilities.screenResolutionX - window.width) / 2;
stage.nativeWindow.y = (Capabilities.screenResolutionY - window.height) / 2;
///// stop the stage from scaling
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
========================================
function maximizeWindow(event:MouseEvent):void {
window.maximize();
minMaxClose.restore_btn.visible=true;
minMaxClose.maximize_btn.visible=false;
corner_resize_btn.visible=false;
maskMC.height = stage.height;
maskMC.width = stage.width;
}
Mask is same size as app to hide all other floating bits around the stage.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now