Realize full screen FLASH to automatically adapt to the size of the browser
[CODE_LITE] fscommand("fullscreen", "true"); Stage.scaleMode = "noScale"; Stage.align = "TL"; // function Resize(){ //Full screen display of background bg._width = Stage.width //Background width=width of the stage bg._height = Stage.height //Background height=height of stage bg._x =0 bg._y =0 //Bottom centered bottom._x = (Stage.width-bottom._width)/2; //X coordinate of top=(width of stage top)/2 bottom._y = Stage.height-bottom._height; //Y coordinate of top=height of stage top //Upper right corner right._x = Stage.width-right._width; //X coordinate of right=width of stage - width of right right._y =0 } Resize(); var myListener:Object = new Object(); myListener.onResize = function(){ Resize(); }; Stage.addListener(myListener); [/CODE_LITE]