"Original" About flash full screen several ways

Source: Internet
Author: User

"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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.