Dec 18, 2006 #1 alexxxis Programmer Sep 21, 2006 38 RO i have to make a .exe project out of a fla. i did the project, but i can`t make it start full screen by default. Any advice ?
i have to make a .exe project out of a fla. i did the project, but i can`t make it start full screen by default. Any advice ?
Dec 18, 2006 #2 JRBeltman IS-IT--Management Feb 5, 2004 290 NL Ok, I have used this in my very early days creating http://www.future-resourcing.com (still there as an example). The script below (old old old) will open the required flash movie full screen after displaying the index page. Have a look at the site and script and perhaps you can make use of it. Good luck. <html> <head> <script language="JAVASCRIPT"> <!-- function detectVersion() { version = parseInt(navigator.appVersion); return version; } function detectOS() { if(navigator.userAgent.indexOf('Win') == -1) { OS = 'Macintosh'; } else { OS = 'Windows'; } return OS; } function detectBrowser() { if(navigator.appName.indexOf('Netscape') == -1) { browser = 'IE'; } else { browser = 'Netscape'; } return browser; } function FullScreen(){ var adjWidth; var adjHeight; if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) { adjWidth = 20; adjHeight = 35; } if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) { adjWidth = 20; adjHeight = 35; winOptions = 'fullscreen=yes'; } if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) { adjWidth = 30; adjHeight = 30; } if(detectVersion() < 4) { self.location.href = 'oldbrowser.html'; } else { var winWidth = screen.availWidth - adjWidth; var winHeight = screen.availHeight - adjHeight; var winSize = 'width=' + winWidth + ',height=' + winHeight; var thewindow = window.open('background.html', 'FutureResourcing', winSize); thewindow.moveTo(0,0); } } function MakeItSo(){ if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) { window.open('background.html','FutureResourcing','fullscreen=yes,toolbar=yes,status=yes'); } else { onload=FullScreen(); } } //--> </script> <script language="JavaScript"> <!-- <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); // --> function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0 var ok=false; document.MM_returnValue = false; with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) { ok=(plugins && plugins[plgIn]); } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1 if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash; else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir; else ok=autoGo; } if (!ok) theURL=altURL; if (theURL) window.location=theURL; } //--> </script> </head> <body bgcolor="#000000" text="#FFFFFF" scroll='no' onload="MM_checkPlugin('Shockwave Flash','javascript:MakeItSo()','index.htm',true);return document.MM_returnValue"> </body> <script name="Used by MM_checkPlugin" language="javascript"> <!-- with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+ '<scr'+'ipt language="VBScript">\nOn error resume next\n'+ 'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+ 'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>'); //--> </script> </html> JR (http://www.jrbeltman.com)IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics! Upvote 0 Downvote
Ok, I have used this in my very early days creating http://www.future-resourcing.com (still there as an example). The script below (old old old) will open the required flash movie full screen after displaying the index page. Have a look at the site and script and perhaps you can make use of it. Good luck. <html> <head> <script language="JAVASCRIPT"> <!-- function detectVersion() { version = parseInt(navigator.appVersion); return version; } function detectOS() { if(navigator.userAgent.indexOf('Win') == -1) { OS = 'Macintosh'; } else { OS = 'Windows'; } return OS; } function detectBrowser() { if(navigator.appName.indexOf('Netscape') == -1) { browser = 'IE'; } else { browser = 'Netscape'; } return browser; } function FullScreen(){ var adjWidth; var adjHeight; if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) { adjWidth = 20; adjHeight = 35; } if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) { adjWidth = 20; adjHeight = 35; winOptions = 'fullscreen=yes'; } if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) { adjWidth = 30; adjHeight = 30; } if(detectVersion() < 4) { self.location.href = 'oldbrowser.html'; } else { var winWidth = screen.availWidth - adjWidth; var winHeight = screen.availHeight - adjHeight; var winSize = 'width=' + winWidth + ',height=' + winHeight; var thewindow = window.open('background.html', 'FutureResourcing', winSize); thewindow.moveTo(0,0); } } function MakeItSo(){ if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) { window.open('background.html','FutureResourcing','fullscreen=yes,toolbar=yes,status=yes'); } else { onload=FullScreen(); } } //--> </script> <script language="JavaScript"> <!-- <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); // --> function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0 var ok=false; document.MM_returnValue = false; with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) { ok=(plugins && plugins[plgIn]); } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1 if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash; else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir; else ok=autoGo; } if (!ok) theURL=altURL; if (theURL) window.location=theURL; } //--> </script> </head> <body bgcolor="#000000" text="#FFFFFF" scroll='no' onload="MM_checkPlugin('Shockwave Flash','javascript:MakeItSo()','index.htm',true);return document.MM_returnValue"> </body> <script name="Used by MM_checkPlugin" language="javascript"> <!-- with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+ '<scr'+'ipt language="VBScript">\nOn error resume next\n'+ 'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+ 'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>'); //--> </script> </html> JR (http://www.jrbeltman.com)IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
Dec 18, 2006 Thread starter #3 alexxxis Programmer Sep 21, 2006 38 RO that was a code for the html that contains the flash. i wanted to run the application independetly. anyway, found it. fscommand("fullscreen", "true"); thanks. Upvote 0 Downvote
that was a code for the html that contains the flash. i wanted to run the application independetly. anyway, found it. fscommand("fullscreen", "true"); thanks.
Dec 18, 2006 #4 JRBeltman IS-IT--Management Feb 5, 2004 290 NL ah great. Yes, it was the only thing close to what you wanted that I could find within seconds JR (http://www.jrbeltman.com)IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics! Upvote 0 Downvote
ah great. Yes, it was the only thing close to what you wanted that I could find within seconds JR (http://www.jrbeltman.com)IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!