Skip to main content
Participating Frequently
July 21, 2017
Question

How to make Responsive Resolution in Adobe Flash CS6 or AS3?

  • July 21, 2017
  • 2 replies
  • 3454 views

I have project make an android application for education, i use software Adobe Flash CS6.  I wanna ask to anybody who can help me or understand about as3 especially about responsive resolution. I use resolution 800 x 480 px in my project, when i publish the project and i try in my handphone which have screen 5.0 inch the application not fullscreen but there are space in right and left.

Does the application need a script or any other settings when publish? What script i should used for responsive resolution?

I hope anybody can help me

Thank youuu

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
July 21, 2017

The easiest one to use to solve your problem is show all, and that happens to be the default. You see black borders because you have no content there. So, don't do any code changes, just add extra background to the left and right of the stage.

Assuming that it's a landscape app, and your native stage is 800x480, and you want to support the S8 phone which is extra wide, put in enough extra background to cover at least say 1024 width. Your stage would still be 800x480, but your background would be 1024x480.

Now, if you want the same app to work on iPad, or any Android that is 4:3, you would want to have extra background above and below the stage. That would be 600 pixels of height.

In other words, have a stage of 800x480, and a background of 1024x600, and you're good to go for everything from S8 to iPad.

Participating Frequently
August 11, 2017

Thank you, but i've try and it's not work

kglad
Community Expert
Community Expert
July 21, 2017

you have 4 choices for fullscreen.  check the stagescalemode class for them in a more readable format:

EXACT_FIT : String = "exactFit"

[static] Specifies that the entire application be visible in the specified area without trying to preserve the original aspect ratio.

StageScaleMode
NO_BORDER : String = "noBorder"

[static] Specifies that the entire application fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

StageScaleMode
NO_SCALE : String = "noScale"

[static] Specifies that the size of the application be fixed, so that it remains unchanged even as the size of the player window changes.

StageScaleMode
SHOW_ALL : String = "showAll"

[static] Specifies that the entire application be visible in the specified area without distortion while maintaining the original aspect ratio of the application.

Participating Frequently
August 11, 2017

i've try to put the script in my project but in fact it doesn't work.

kglad
Community Expert
Community Expert
August 11, 2017

show the code you used.