Return to Snippet

Revision: 56282
at March 20, 2012 03:10 by ekameleon


Initial Code
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 ) ;
            }
        }
    }
}

Initial URL

                                

Initial Description
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 !

Initial Title
Bug with my Android AIR application in Android 3.1 (& 3.2)

Initial Tags

                                

Initial Language
ActionScript 3