Orientation on startup problem

Can someone please tell me how to get the Ipad app to autorotate on startup.
I have a function that rotates all of the groups but it doesn´t work on the startup.
I am really struggeling here, this is almost the last part to solve before I finally can release my game.

Maholm [import]uid: 5717 topic_id: 2647 reply_id: 302647[/import]

Are you referring to your Default.png?
That is portrait only from what I can tell. Just rotate the image in photoshop. After that…all other orientation settings/instructions are in the API Reference. [import]uid: 9492 topic_id: 2647 reply_id: 7638[/import]

I have Default-Portrait.png, Default-Landscape.png, Default-LandscapeLeft.png, Default-LandscapeRight.png and Default-PortraitUpsideDown.png and in thee build.settings
settings =
{
        orientation =
        {
                default = “portrait”,
                supported =
                {
                        “landscapeLeft”, “landscapeRight”,“landscapeRight” , “portraitUpsideDown”,
                },
        },
}

I also have a function (onOrientationChange) that rotate the groups right if I start the program in “portrait”.

I add the eventlistener with:
Runtime:addEventListener(“orientation”,onOrientationChange)

I have tried everything but nothing works.

Maholm [import]uid: 5717 topic_id: 2647 reply_id: 7641[/import]

My point is…force the default to a single orientation…either portrait or landscape and then make your default.png to match.

Then after the app is loaded…start manipulating orientation. It appears that the iOS forces an app to load in portrait mode no matter what you do. Until your files are loaded…no orientation can be manipulated.

Maybe I’m wrong here…but that is what seems to be happening to our app. The device orientation works fine…once the app is loaded…but prior…the default.png file is portrait only…and stretched to fit the screen. [import]uid: 9492 topic_id: 2647 reply_id: 7644[/import]

Is this something that I should do in the build.settings?Sorry for all my questions but I have never done this before.

Maholm [import]uid: 5717 topic_id: 2647 reply_id: 7649[/import]

The build.settings controls orientation AFTER the app starts up. Docs are here:
http://developer.anscamobile.com/content/configuring-projects#Build_Configuration:_build.settings

But while the app is launching…all you have to work with is the Default.png in Portrait orientation. If you want it to APPEAR landscape…just make the image sideways.

I assume we are talking about the same issue. [import]uid: 9492 topic_id: 2647 reply_id: 7650[/import]

I think I understand you but I don´t know how to check while launching…

Maholm [import]uid: 5717 topic_id: 2647 reply_id: 7652[/import]

The default screen is only testable on a device build. [import]uid: 9492 topic_id: 2647 reply_id: 7653[/import]

Do you know any good example of this?

Maholm [import]uid: 5717 topic_id: 2647 reply_id: 7655[/import]

No…
What I’ve written is all I’ve got for you…Just figured out that much with trial and error. [import]uid: 9492 topic_id: 2647 reply_id: 7656[/import]