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
Crystal capsule design (practice at leisure) Six Outlaws for Web Designers AI file cannot find the linked file, select Replace to select another file, or select Ignore to keep the link unchanged Simple Metal Texture Icon Making Tutorial Design of prohibition icon (review) ZBlogLOGO design with CSS3 special effects and PSD download