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
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).
Copy link to clipboard
Copied
Thanks, but :
on air desktop, stage. supportsOrientationChange returns false, I can't detect orientation or changes
Copy link to clipboard
Copied
so you can't test on the desktop. desktop testing is poor for any non-desktop air app.