Simulator additions: add faceUp and faceDown orientations

This should be a quick/easy fix… please add faceUp and faceDown as options you can set for Orientation under the simulator’s Hardware menu. I spent a few hours because my app crashed on my iPad whenever I launched it and the iPad was laying flat on a table! Took a while to figure out my orientation code wasn’t checking for these other two options. [import]uid: 9905 topic_id: 6804 reply_id: 306804[/import]

David

is this a bug or a feature request?

if its a bug and crashing can you send me code (zipped with corresponding images) to look at?

c. [import]uid: 24 topic_id: 6804 reply_id: 23782[/import]

Carlos, probably would be more of a feature request. I fixed my code to handle this instance, but not having the ability to test all the orientations in the simulator was what led to the problem initially. [import]uid: 9905 topic_id: 6804 reply_id: 23787[/import]

Was driving me nuts, too. Was relying on display.contentWidth/height to display either a horizontal or a vertical interface at startup. Worked on all orientations but faceUp/Down. Then remembered the old days of Macromedia Director programming: the screen had to redraw/blit at least once in order to measure the stage. Added a listener at startup, only building the interface once the “playback head” has done one loop. Worked for me:
function myLoaderFunction()
if(myEnterFrameCount>1) then
– load your interface function call here
else
myEnterFrameCount = myEnterFrameCount + 1
end
end

myEnterFrameCount = 0
Runtime:addEventListener( “enterFrame”, myLoaderFunction ) [import]uid: 39806 topic_id: 6804 reply_id: 31128[/import]