View Full Version : Full screen browser swf
mkohne
June 13th, 2008, 03:20 PM
Anyone know how to accomplish the full screen functionality they use on this site:
http://www.thehappeningmovie.com/
When you click the "fullscreen" link it takes up the entire screen with the "Press esc to exit full screen mode". I have used this with flv players, like http://www.jeroenwijering.com/?item=JW_FLV_Player, but not with swf files.
Is this hard to do?
findAll
June 14th, 2008, 09:43 AM
Hi!
First, go to publish settings in flash, and, in HTML tab, set Template to Flash Only - Allow Full Screen.
Then, create a movieclip or a button with instance name myButton, go in the main timeline and put there the following code:
myButton.onRelease = function (){
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
}else{
Stage["displayState"]="normal";
}
}
(Note: the code above is for AS2.0)
Then, publish the file. To dublecheck, open the html in a text editor like notepad and see if 'allowfullscreen' is set to 'true'. If so, it is OK. Now, open your file in a browser to see if it goes full screen.
(Note: If you wanna make an entire site to go fullscreen, take care: it is useless to put input textfields, like for contact page, because keyboard is disabled in fullscreen mode, but is enabled again when reverting to the normal browser mode)
mkohne
June 14th, 2008, 12:34 PM
Exactly what I needed, thanks for the help.
mkohne
June 16th, 2008, 12:25 PM
One more thing. I get a weird behavior in IE with dual monitors. If the browser window is on monitor 2 and I hit full screen, the whole thing wigs out. It works fine if it is on monitor 1. Ever have an issue with this?
KDS
October 27th, 2008, 02:53 PM
i need the main code to make the same.
KDS
October 28th, 2008, 02:25 PM
can any one help for making exit full screen button and return to normal again
KDS
October 28th, 2008, 06:40 PM
any one
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.