"Original content, reproduced please specify the source"
"There are other ways to share messages, thank you!" "The first type of flash comes with attributes:"This property can be" perfect "to achieve double exit of flash or go full screen"but it obscures the nested IFRAME.Private Function init (): Void{stage.scalemode = Stagescalemode.exact_fit;} Double-click Listener Event Private Function Togglefullscreen (event:mouseevent): void {switch (stage.displaystate) {case "normal": Stage.displaystate = stagedisplaystate.full_screen_interactive;break;case "fullscreen":d efault:stage.displayState = Stagedisplaystate.normal;break;}} The second type of flash comes with attributes:"This method is different from the first type of the property value of the call, you can also double-click the Flash or exit the full screen, and will not obscure the IFrame interface."But the full screen will affect the keyboard listening eventsPrivate Function init (): Void{stage.scalemode = Stagescalemode.exact_fit;} Double-click Listener Event Private Function Togglefullscreen (event:mouseevent): void {switch (stage.displaystate) {case "normal": Stage.displaystate = "fullscreen"; Break;case "fullscreen":d efault:stage.displayState = "normal"; break;}} The third script to invoke full-screen browser:"This method is the most unsuccessful, it is just a simple simulation of the browser full-screen operation, full screen is just the browser window, the flash is not valid"". js script": var bfullscreen = false;function fullscreen () {if (Bfullscreen) {if (Document.exitfullscreen) { Document.exitfullscreen ();} else if (document.mozcancelfullscreen) {Document.mozcancelfullscreen ();} else if (document.webkitcancelfullscreen) {Document.webkitcancelfullscreen ();} else if (document.msexitfullscreen) {Document.msexitfullscreen ();}} Else{var Docelm = Document.documentelement;//w3cif (docelm.requestfullscreen) {Docelm.requestfullscreen ();} Firefoxelse if (docelm.mozrequestfullscreen) {Docelm.mozrequestfullscreen ();} Chrome and other else if (Docelm.webkitrequestfullscreen) {Docelm.webkitrequestfullscreen ();} Ie11else if (docelm.msrequestfullscreen) {Docelm.msrequestfullscreen ();}} Bfullscreen =!bfullscreen;} "Flex Call Script"://double-click Listener Event Private Function Togglefullscreen (event:mouseevent): void {//Script call Externalinterface.call (" Fullscreen ");}
"Original" About flash full screen several ways