Skip to main content
spacebaloon
Known Participant
January 5, 2016
Question

Chromeless Air app full screen borders-

  • January 5, 2016
  • 0 replies
  • 532 views

This is a copy of a post first put in the as3 section, but might work better here as well.

Chromeless Air app full screen borders

======================================================

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.

This topic has been closed for replies.