Quantcast
Channel: Adobe Community : All Content - AIR Bugs and Performance Issues
Viewing all articles
Browse latest Browse all 1419

Chromeless Air app full screen borders-

$
0
0

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.


Viewing all articles
Browse latest Browse all 1419

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>