/ Published in: ActionScript 3
A bug when i create an AIR application for Android ( with AIR 3.2 and target FP 11.1)
Wanted ! Someone who has an Android Tablet with Android 3.1 or 3.2 (Galaxy Tab or other tablet..). I have a big bug with the stage of the application when i want change this default aspect-ratio of the stage ( portrait to landscape ).
The system run an animation during the transition between the old and the new aspect-ratio but this transition create an infinite loop and it's impossible to stop it !
Wanted ! Someone who has an Android Tablet with Android 3.1 or 3.2 (Galaxy Tab or other tablet..). I have a big bug with the stage of the application when i want change this default aspect-ratio of the stage ( portrait to landscape ).
The system run an animation during the transition between the old and the new aspect-ratio but this transition create an infinite loop and it's impossible to stop it !
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package test { import flash.display.Sprite; import flash.display.StageAspectRatio; import flash.events.MouseEvent; [SWF(width="480", height="800", frameRate="24", backgroundColor="#666666")] public class Application extends Sprite { public function Application() { if( stage ) { var square:Sprite = new Sprite() ; square.graphics.beginFill(0xFF0000); square.graphics.drawRect(0,0,100,100) ; stage.scaleMode = "noScale" ; stage.align = "tl" ; stage.addChild( square ) ; stage.setAspectRatio( StageAspectRatio.LANDSCAPE ) ; } } } }