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

Screen Resolution

Guest
Jul 22, 2013 Jul 22, 2013

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

610

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
community guidelines
Guru ,
Jul 22, 2013 Jul 22, 2013

Copy link to clipboard

Copied

Votes

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
community guidelines
Guest
Jul 23, 2013 Jul 23, 2013

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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,

Votes

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
community guidelines