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

How to test a Flash Pro proj for Retina iPad

Engaged ,
May 03, 2013 May 03, 2013

Hi,

When creating an app for the Retina iPad the screen dimensions are so huge that the swf can only be partially viewed. Is there a trick to solve this?

Thanks!

TOPICS
ActionScript
838
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
Advocate ,
May 04, 2013 May 04, 2013

Configure Adobe Air settings for High resolution. Than prepare content with 2x size.

For example default button 200x100 pixels and Retina copy must be 400x200

In the code put stage.scaleMode = StageScaleMode.NO_SCALE and stage.align = StageAlign.TOP_LEFT

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
Engaged ,
May 04, 2013 May 04, 2013

Hi,

I probably didn't make my issue clear enough. When testing my iPad Retina app the dimesions of the stage are so large that I can't see almost half the content. Is there a way to test the app on a computer so I can view all the content?

The publishing settings are set to High and the content is prepared for the large retina size. I have this code: stage.scaleMode = StageScaleMode.NO_SCALE and stage.align = StageAlign.TOP_LEFT

But the issue is that I can not see all the content, or stage, because the width and height are so large to accomdate the iPad Retina's display height and width.

So do I set the stage's height and width at a lower screen resolution so I can test it on a PC? then when publishing/testing it on an iPad I double it's size?

Cheers.


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
Advocate ,
May 04, 2013 May 04, 2013
LATEST

If you want to test on PC screen - make it easy.

1) Create some class like MainDisplay that extends Sprite

2) Add it to the stage

3) When than add all your project to this MainDisplay as child.

Than make MainDisplay.scaleX = MainDisplay.scaleY = 0.5;

This will scale down your sprite but save the rest size. Not good solution but one of best. Before publish to iOS simply change 0.5 to 1

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