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

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

Community Beginner ,
Sep 17, 2017 Sep 17, 2017

Copy link to clipboard

Copied

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

Views

219

Translate

Translate

Report

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

Copy link to clipboard

Copied

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).

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks, but :

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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