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]
Related articles
Examples of four methods of commonly used non sawtooth clear text WeChat avatar PSD source file for the 70th anniversary of the founding of the People's Republic of China Ten pieces of advice for young designers The process of making ttf font file AI file cannot find the linked file, select Replace to select another file, or select Ignore to keep the link unchanged InDesign's method of displaying the opposite page as a single page