I've had this problem for some time, so decided to create a 2 event capx to demonstrate it as the game has failed the customers QA so im not getting paid :(
If you go from landscape to portrait and back, it correctly flips between the landscape screen and the portrait layout.
But if you are in landscape mode, and rotate the mobile (iphone 4) by 180 degrees, the screen goes black. As a secondary problem, in my actual game, it will not accept any input or events at this point either.
Here is the live exported project:
http://www.ohds.co.uk/c2/landscape_going_black_fail/
It doesn't work in iphone 4 (ios 5) nor ipad 3, the only two platforms I have to target.
Here is the capx:
https://www.dropbox.com/s/f9enc1v26d4mg3t/landscape_going_black_fail.capx
Note: there is a slight modification to the index.html to support iphone4 removing the addrss bar. But this code is not run for the ipad, so I dont think its that (and if it was, I would still need to find a solution as removing the address bar is an absolute requirement for any casino type game on the iphone, unfortunately).
Please note:
1) using phonegap or similar is not an option, these games have to run in HTML5 in a mobile browser.
2) I have to use crop mode to support various screen sizes without black bars.
In addition, on the iphone3, sometimes this black screen of death happens when you just go from portrait to landscape, or even from landscape to portrait, then it often stays black (i.e. going back to portrait still shows the broken black screen). Interestingly, this exactly what happens sometimes in my real game. So it seems to be an issue where if the phone is slow, or the app is complex and slow, the switch between portrait and landscape layouts fails frequently but not always.
Thanks for any help, it is much appreciated.