How to rotate the screen in simulator in adobe flash builder, its work in my samsung s6 edge+ , but it's not work simulator in flash builder
my code :
import as3isolib.geom.Pt;
import eDpLib.events.ProxyEvent;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
[SWF(backgroundColor ='#000000', framerate ='30')]
publicclass map extendsSprite
{
privatevar grid :IsoGrid;
privatevar scene:IsoScene;
privatevar view:IsoView;
privatestaticconst CELL_SIZE:Number=40;
privatevar box:IsoBox;
publicstaticconstStageAspectRatio:String="portrait";
publicstaticconst LANDSCAPE:String="landscape"
publicfunction map()
{
super();
//stage.align = StageAlign.TOP_RIGHT;
stage.setAspectRatio(LANDSCAPE );
stage.autoOrients =false;
stage.setOrientation("rotatedRight");
//stage.scaleMode = StageScaleMode.SHOW_ALL;
grid =newIsoGrid();
// grid.addEventListener(MouseEvent.CLICK , gridClick );
grid.addEventListener(MouseEvent.MOUSE_MOVE , gridClick );
grid.setGridSize(15,15,1);
grid.cellSize = CELL_SIZE ;
grid.showOrigin =false;
box =newIsoBox();
box.setSize(CELL_SIZE , CELL_SIZE , CELL_SIZE );
scene =newIsoScene();
scene.addChild(grid);
scene.addChild(box);
scene.render();
view =newIsoView();
view.setSize( stage.fullScreenWidth , stage.fullScreenHeight);
view.addScene(scene);
view.centerOnPt(newPt(200,200,0));
addChild(view);
}
protectedfunction gridClick(event:ProxyEvent):void
{
var me :MouseEvent=MouseEvent(event.targetEvent );
var p :Pt=newPt( me.localX , me.localY );
IsoMath.screenToIso(p);
box.moveTo(Math.floor(p.x/CELL_SIZE)*CELL_SIZE,Math.floor(p.y/CELL_SIZE)*CELL_SIZE ,0);
scene.render();
}
}
}
its look like this ....
And also the Orientation in my Samsung s6 edge+ its not good because there are black area in the top and the button
