Skip to main content
Participant
June 17, 2011
Question

Flash CS5.5 iOS scale and arrange content on device rotation

  • June 17, 2011
  • 3 replies
  • 1406 views

Hello All-

I am new to developing iPad/iPhone apps, and am currently using Flash CS5.5 to create an iPad app for a client. Basically, the app is a multipage form with tons of radios, text fields, and text areas. It has a header and footer with some vector graphics. So here is my problem.

In my publish settings, i have "Auto-Rotation" checked, which works fine. The native dimensions of the app is H: 1024 W:768, so when it rotates now, it just scales everything so all the content when in landscape mode fits on the screen. But what I want is when the iPad is rotated, I want the header and footers to scale to fit the entire screen, and I want all the form areas to stay the same size. This obviously would require the user to have to "pan" up and down to see all the fields of the form.

I attempted to use the "code snippets" to accomplish this, but it really made things quite screwy. If anyone has any sites, tutorials, or groups that address this, or if you know how to fix this, I would GREATLY appreciate your feedback.

Thank you for your time,

- Scott V.

This topic has been closed for replies.

3 replies

The1derAuthor
Participant
June 21, 2011

Thank you for your responses they were helpful.

I found this article, http://www.adobe.com/devnet/flash/articles/screen_orientation_apis.html , which definitely helped. I ended up going with what they suggested in it, by creating two seperate movieclips that are designed for either landscape mode, or portrait mode. Pretty simple fix. Easier then rearranging all the form elements dynamically.

Thank you,

Scott

Known Participant
June 23, 2011

Thanks for the link. It is excatly what I've been looking for

relaxatraja
Inspiring
June 21, 2011

Listen for the Stage Resize Event on rotation and arrange the object on the stage according to the width and height of the stage.

Participating Frequently
June 19, 2011

My understanding is that you have to basically code two screen layouts for portrait and for landscape telling the stage not to scale (look up stage.scaleMode).

This is not so bad for a fixed dimension screen but gets trickier is coding for different dimensions.

Eddie