Skip to main content
Participating Frequently
April 4, 2014
Question

No orientationEvent on Dell Latitude 10 tablet

  • April 4, 2014
  • 1 reply
  • 498 views

I am writing an Air app for the Dell Latitude 10 tablet, running Windows 8 in the desktop mode. I am not receiving orientationChanged events when the device is rotated, even though the orientation does in fact change on the screen.

In fact, Stage.supportsOrientationChange is returning false.

Also autoOrients is showing as false.

Even setting setting stage.autoOrients = true; in the ActionScript code has no effect, it still stays as false.

However, the screen content does change orientation with tablet rotation.

My particular problem is with the use of the camera. When the tablet is rotated, obviously the camera is also rotated and my video stream being sent from it is on its side.

However, other apps, such as Skype, seem to know about the rotation and correctly rotate the video stream.

How can I detect it from ActionScript?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
April 4, 2014

I am taking something of a guess here, but as far as I knew orientation changes were to do with AIR for Mobile, and AIR for Mobile doesn’t support Windows 8. Which means that you would have to rely on AIR for Desktop or Flash Player events to be able to react.

Can you achieve what you want by using the resize event? You will know from that whether it’s now portrait or landscape.

cgunnausAuthor
Participating Frequently
April 4, 2014

Thanks.

Yes, that is my fallback, but the app runs in a resizable window so the user could resize it to be portrait aspect ratio even when the tablet is held in landscape. So it would not be completely reliable.

Colin Holgate
Inspiring
April 4, 2014

Aha! So, you’re saying you’re a masochist!

Is it a web page then? If it is, can you set html to control whether a window resize can force it to be portrait while in landscape?