Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Chromeless Air app full screen borders

Explorer ,
Jan 01, 2016 Jan 01, 2016

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
ActionScript
363
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation