Highlighted

Chromeless Air app full screen borders-

Explorer ,
Jan 04, 2016

Copy link to clipboard

Copied

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?

1a.jpga1.jpg

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.

TOPICS
Performance issues

Views

437

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

Chromeless Air app full screen borders-

Explorer ,
Jan 04, 2016

Copy link to clipboard

Copied

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?

1a.jpga1.jpg

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.

TOPICS
Performance issues

Views

438

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
Jan 04, 2016 0

Have something to add?

Join the conversation