Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Screen Resolution

Guest
Jul 22, 2013 Jul 22, 2013

I am developing an android game. How can I set the screen resolution to fit the phone's resolution?

TOPICS
ActionScript
630
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
Guru ,
Jul 22, 2013 Jul 22, 2013
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
Guest
Jul 23, 2013 Jul 23, 2013

Can you describe it more detail?I'm a little bit confused.

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
Guru ,
Jul 23, 2013 Jul 23, 2013
LATEST

use this code to trace out the resolution of your display:

import flash.system.Capabilities;

getScreenNVersion();

function getScreenNVersion():void{

    trace("flash.system.Capabilities.screenResolutionX is : " + String(flash.system.Capabilities.screenResolutionX) + "\n" +

    "flash.system.Capabilities.screenResolutionY is : " + String(flash.system.Capabilities.screenResolutionY)

    );

}

then use this information to scale your stage accordingly.

How can I set the screen resolution to fit the phone's resolution?

You can`t without using "hacks", the stage resoultion can not dynamically be changed,

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