Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Lock orientation with Air Desktop? / Bloquer l'orientation avec Air Desktop ?

Community Beginner ,
Sep 17, 2017 Sep 17, 2017

Hello,

I'm trying to block the landscape orientation of an air desktop application created with animate cc. No worries for the IOS and Android versions, but with a tablet in Windows 10, no way to lock orientation, no way to force the startup in landscape mode, if the tablet is in portrait mode...

I'm the one who's interested in any idea!

Thank you, thank you!

Bonjour,

Je cherche à bloquer l'orientation en mode paysage d'une application air desktop créée avec animate cc. Pas de soucis pour les versions IOS et android, mais avec une tablette sous windows 10, pas moyen de verouiller l'orientation, pas moyen non plus de forcer le démarrage en mode paysage, si la tablette est en mode portrait...

Je suis preneur de toute piste d'idée !

Merci !

Christophe

273
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2017 Sep 17, 2017

if setting autoOrients to false fails, use a listener to detect device rotation/ and then assign the stage.setAspectRatio to landscape.  likewise, at the start use the orientation property of the stage to set the aspect ratio (or just set it).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 17, 2017 Sep 17, 2017

Thanks, but :

on air desktop, stage. supportsOrientationChange returns false, I can't detect orientation or changes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2017 Sep 17, 2017
LATEST

so you can't test on the desktop.  desktop testing is poor for any non-desktop air app.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines