Skip to main content
Known Participant
October 31, 2012
Question

How to set zoom level for a mobile device screen without changing screen size?

  • October 31, 2012
  • 4 replies
  • 1341 views

How to set zoom level for a mobile device screen without changing screen size? The screen size is too big to fit on my screen. I am trying to debug with the air debugger from FB4.

Is there such option? Setting lower screen size isn't an option since it breaks the example application that I have and I don't want to program for different screen sizes in this case. Just for one - but I need it to fit on my screen.

Can someone help ? Thanks!

This topic has been closed for replies.

4 replies

FM_FlameAuthor
Known Participant
November 2, 2012

Ok so you guys say the only way to do that is programmatic or with simulators. Is there info by any chance that the air debugger will support the zoom feature in a new version maybe ? It seems like a very common thing for simulators and the AIR debugger is missing it, also having in mind that after a while there will be many huge screen resolutions that won't fit the desktop like the Retina.

Inspiring
November 2, 2012

Only way I know...

try something like this in your main.as file?:

//1440 is my desktop monitor resolution

if (Capabilities.screenResolution.x == 1440)

{

this.scaleX = .5;

this.scaleY = .5;

}

Mark.fromOP
Inspiring
November 1, 2012

Change your monitor resolution? Unless you are building an iPad 3/4 app then no standard screen can handle that beast. The native iOS Simulator lets you test your app at different zoom resolutions, so you can export an iPad3 size app and test it at 50% zoom. If you have a Mac it is relatively simple to set it up, if you have a pc you are SOL.

Inspiring
November 2, 2012

ScaleX/Y your main mc on load and then comment out the lines when deploying to the actual device.

I do 50% for iPhone and a little less, maybe .45 for the iPad (Retina). (using Flash Pro for test/debug)