True Fullscreen Flash Mode
Description: Toggle a flash applet between normal size and full-screen
Author: John Bezanis
Added: August 20th 2007
Version: Flash 8
Since the Flash Player 9,0,28,0 update, flash applets can go to true full-screen. There are no fancy javascript hacks needed either. Users can toggle between normal size and fullscreen with a simple click, which can toggle Stage["displayState"] from "normal" to "fullScreen". The param allowFullScreen must be set to true in the applet html.
<param name="allowFullScreen" value="true" />The first thing to do is create a button and add the following code to it:
- on(press){
- toggleFullScreen();
- }
- //Don't scale the movie when the stage size changes
- Stage.scaleMode="noScale";
- //Align the stage to the top left
- Stage.align = "TL";
- //Function to toggle between fullscreen and normal size
- //the toggle fullscreen button calls this function when pressed
- function toggleFullScreen(){
- //if normal size, go to fullscreen, else go to normal size
- if(Stage["displayState"]=="normal"){
- Stage["displayState"]="fullScreen";
- }else{
- Stage["displayState"]="normal";
- }
- }
- //Create a listener for each time the Stage is resized
- var resizeListener:Object = new Object();
- //Called each time the stage is resized
- resizeListener.onResize = function () {
- //Move the button to the center of the screen
- toggleFullScreenButton._x=Stage.width/2;
- toggleFullScreenButton._y=Stage.height/2;
- }
- //Add the listener to Stage
- Stage.addListener(resizeListener);
<object data="http://www.bezzmedia.com/swfspot/resources/34-fullscreen.swf"
type="application/x-shockwave-flash" width="400" height="200" >
<param name="movie" value="http://www.bezzmedia.com/swfspot/resources/34-fullscreen.swf" />
<param name="allowFullScreen" value="true" />
</object>The balls were added in to show that the stage extends to the borders of the screen, even when resized.
Download the source file below:
Download Source File
Comments
September 10th 2007 02:09PM - EXE
Hi! Thank you! How do you remove the info. bar in the middle that tells you to hit esc. when switching to fullscreen?
September 15th 2007 12:09AM - kathleen
Sorry Kathleen, there is no way to remove it.
September 15th 2007 04:09AM - John
I beg your pardon, it doesn't work for me too.I tried even after downloading your swf fife in my web page.Could u help me out,please.
Thanking you in advance.
saminda
Thanking you in advance.
saminda
September 23rd 2007 05:09AM - saminda
Fullscreen mode only works when viewing from a browser and you use the tag <param name="allowFullScreen" value="true" /> in your code. See the html above.
September 23rd 2007 08:09PM - John
Dang everytime it goes fullscreen my movie is in the top corner off centered help! :O
September 27th 2007 07:09PM - luis
You could put your content into a container movie clip, and then center that container each time the movie is resized.
September 27th 2007 08:09PM - John
I am trying to get my site to start in Full screen mode. As I know that Adobe limits this, I am trying to add a simple entery page so the user clicks on a button that says "Launch HDonlineCinema.com" and then the button should start HDonlineCinema.com the video in full screen mode. I am not a program, but a producer. How can I apply the above code to do that. Please this is urgent.
Thank you,
John
JDowling81@hotmail.com
Thank you,
John
JDowling81@hotmail.com
October 25th 2007 02:10PM - John Dowling
I ask a question,is js can control the Fullscreen Flash Mode?could you tell me how to do it?
November 16th 2007 02:11AM - sunshine
remember, this works only with transparent mode DISABLED
November 16th 2007 03:11AM - Jujo
In Safari (MAC) my buttons doesn't works in fullscreen mode ??? You can click on it.. butt the rollover state doesn't work anymore ?
Help me
Help me
November 22nd 2007 02:11AM - Hekka
What version of flash are you running?
November 22nd 2007 06:11AM - John
Hey Jujo...
What the heck is transparent mode, and disabled where/how?
What the heck is transparent mode, and disabled where/how?
November 23rd 2007 07:11PM - Bisimo
thanks so much! works perfectly :o)
November 26th 2007 04:11PM - jodi
just started with my first website ! and i want to have my flash site in fullsreen can sombody edit this ! and can somebody explain this in a more easy way.
November 29th 2007 02:11PM - meloen
I can't seem to get this to work!
Downloaded the resource and the .swf works perfect in my HTML editor
But
When I use the same attibutes *codes* as for this one on my own project, nothing seems to work :|
Any help would be appreciated :D
Downloaded the resource and the .swf works perfect in my HTML editor
But
When I use the same attibutes *codes* as for this one on my own project, nothing seems to work :|
Any help would be appreciated :D
December 2nd 2007 11:12AM - Bob
Does anybody know how to get this to work in both IE6 and opera?? It works perfectly in Firefox, Safari, and Netscape for me.. Are there any known hacks or anything, or is this just something that has not been dealt with yet??
December 8th 2007 08:12PM - Rick
Rick, It works for me using those browsers. Maybe your browsers are using older versions of flash.
December 9th 2007 01:12AM - John
I experienced the same problems as Hekka... I use Firefox/Safari for Mac.
In the fullscreen-Mode the Rollovers don't work anymore...
Is there some fix for this problem?
thank you.
In the fullscreen-Mode the Rollovers don't work anymore...
Is there some fix for this problem?
thank you.
December 19th 2007 12:12PM - Jörg
This example does not work because it is written in AS 2.0. If you try to publish the example .fla in Flash 9, AS 3.0, the movie will throw multiple errors.
December 19th 2007 03:12PM - dj
The example works for me in Safari 3.0.4 Flash Player 9.0r115. It also worked in Firefox but not in IE 5.2 for the Mac.
December 26th 2007 09:12AM - Paul
thanks!
January 12th 2008 06:01PM - TREx
Thanks dost!! It really work for me....... :)
January 14th 2008 06:01AM - shadab
it wont work here!
January 20th 2008 10:01PM - neo
Hi, first of all great little tut!
Just a quick question ... Would this fullscreen method work across a 2 monitor setup??? ( the setup in question has 1 monitor at a larger resolution to the other monitor)
thanks !!!
Just a quick question ... Would this fullscreen method work across a 2 monitor setup??? ( the setup in question has 1 monitor at a larger resolution to the other monitor)
thanks !!!
January 22nd 2008 04:01PM - tomo
This was very good tut. I only have one problem. It doesn't work in Mozilla Firefox. And I followed these steps:
ActionScript: I made button and attached script to it, as said in tut. Then I created a function that this script calls.
HTML: I just added following line: <param name="allowFullScreen" value="true" />
This works perfectly in IE, but not at all in Mozilla.
Any idea why?
ActionScript: I made button and attached script to it, as said in tut. Then I created a function that this script calls.
HTML: I just added following line: <param name="allowFullScreen" value="true" />
This works perfectly in IE, but not at all in Mozilla.
Any idea why?
January 24th 2008 07:01AM - vlada
vlada, it works fine for me in Mozilla. Maybe you need to upgrade your mozilla flash plugin.
January 25th 2008 10:01PM - John
For some people here having trouble, remember that if something doesn't work you should update your Flash plugin and clear your browser cache. Your cache may be using an old version of your .swf, even if you've forced a refresh.
January 28th 2008 10:01AM - Alex
make sure you change your publish settings to flash only allow full screen
February 2nd 2008 09:02AM - kevin
can the width and height of the fullscreen can be adjusted. i mean, i just want some padding of all the sides? would it be possible?
February 5th 2008 10:02PM - neo!
Nice tutorial!
February 13th 2008 01:02AM - jd
Works perfect thanks a million! Hehe, tried one hundered times with as3 before I noticed this was as2
February 16th 2008 09:02PM - henk
This works great, thanks for all the hard work.
But is there a way to make the 'toggle full screen' button disappear in full screen mode and reappear in normal screen mode?
But is there a way to make the 'toggle full screen' button disappear in full screen mode and reappear in normal screen mode?
February 24th 2008 12:02PM - Jim
i love you guy...this help me alot!!!thanks soooo much!!!
February 25th 2008 09:02PM - Jin
For the code to work in both IE and FireFox. you must also allowfullscreen ="true" into the embed tag as well.
<embed ... allowfullscreen ="true" ... />
<embed ... allowfullscreen ="true" ... />
March 7th 2008 03:03AM - weilin
Thanks for a great help!
March 12th 2008 12:03AM - jomel
Hi, i have a movie where 20 frames are there and i want to open full screen after clicking on button and it jmps to frame 20 where loadmovienum is written...
Can you please help me out
Can you please help me out
March 13th 2008 05:03AM - Sus
John, fantastic tutorial, it works wonderfully.
I second sunshine - any idea if there's a way to do this via javascript?
I have the external interface calls working just dandy, passing text back and forth, but when I call the function to full screen it, nothing happens. If I click the button, it full screens fine.
I'm guessing its a security issue, although maybe its just something I'm doing wrong?
I second sunshine - any idea if there's a way to do this via javascript?
I have the external interface calls working just dandy, passing text back and forth, but when I call the function to full screen it, nothing happens. If I click the button, it full screens fine.
I'm guessing its a security issue, although maybe its just something I'm doing wrong?
March 13th 2008 08:03AM - Kevin
Well, ignore me. I found my answer, from <a href="http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html">Adobe</a> near the bottom: <em>The ActionScript that initiates full-screen mode can be called only in response to a mouse click or keypress. If it is called in other situations, it will be ignored (in ActionScript 2.0) or throw an exception (in ActionScript 3.0).</em> So, back to the drawing board, I guess.
March 13th 2008 08:03AM - Kevin
not work good in opera :( in IE and FireFox work good
March 17th 2008 02:03PM - gamemonster
I am running a projector file at fullscreen and if I do a getURL or do a print function (and see system print command), it kicks my program OUT of fullScreen mode and into a Flash 9 player at movie size. Any way to prevent this?
Thank you.
Thank you.
March 17th 2008 03:03PM - expgfx
Hi, is any one is there to help me out.
March 31st 2008 10:03AM - Sam
When I press the escape button I return to the normal mode.
I need also to associate to the escape button another action, a LoadMovie; can I put two actions on pressing escape button? How?
I need also to associate to the escape button another action, a LoadMovie; can I put two actions on pressing escape button? How?
April 6th 2008 05:04AM - emanuele
emanuele,
place your loadMovie code within the toggleFullScreen function.
place your loadMovie code within the toggleFullScreen function.
April 6th 2008 01:04PM - John
I tried but probably I putted it not in the exact point
April 6th 2008 01:04PM - emanuele
Where I have to put the loadMovie?
Can you rewrite the function with also the
loadMovie("aaa.swf",_root.target); ?
or
getURL("http://www.google.com/",_blank); ?
Can you rewrite the function with also the
loadMovie("aaa.swf",_root.target); ?
or
getURL("http://www.google.com/",_blank); ?
April 9th 2008 11:04AM - emanuele
Hi all!
I pretty much have the same qustion as expgfx. Im have a fullscreen projector file, where i want to open a html page on top of without it closing fullscreen. I know it works if I export from flash 8. Is this possible from a flash cs3 projector?
appreciate any help!
I pretty much have the same qustion as expgfx. Im have a fullscreen projector file, where i want to open a html page on top of without it closing fullscreen. I know it works if I export from flash 8. Is this possible from a flash cs3 projector?
appreciate any help!
April 10th 2008 05:04AM - matt
@Kevin
Is your Opera updated? it works fine on mine.
Is your Opera updated? it works fine on mine.
April 10th 2008 11:04AM - Rinku
Getting flash to go fullscreen is fine using your code. What I want to do is limit the size of the swf loaded to the movie to 1440 x 1000 pixels. I do not seem to be able to do this. Any ideas appreciated.
April 10th 2008 10:04PM - Rob
Thank You Very Much :)) It works well
April 13th 2008 04:04PM - learner
the html is very important!
must use object data="your movie name.swf"
and don't use the embedded syntax
must use object data="your movie name.swf"
and don't use the embedded syntax
April 16th 2008 05:04PM - Sean
the fullscreen button works but my flash is in the top corner. what did i do wrong? is there something in the flash file that i need to change?
April 18th 2008 10:04AM - kp
kp, Move the objects each time you resize the screen. Place the code within this function - resizeListener.onResize = function () {
You can figure out where it should go by using Stage.width and Stage.height to get the new dimemsions.
You can figure out where it should go by using Stage.width and Stage.height to get the new dimemsions.
April 18th 2008 09:04PM - John
Flash cs3 > publish settings > html > template > flash only - allow fullscreen
April 22nd 2008 07:04AM - olcay
Hello, at first thank you for this beautiful work. I begin a model of site and I have a problem I use a different cursor and the toggle in fullscreen mode show the basic cursor, is it possible not to see the hand displaying? Here is the example in question to be even more clear:
http://www.icare-webdesign.com /estelle
Please help me :(
prends_le_billet@hotmail.com
http://www.icare-webdesign.com /estelle
Please help me :(
prends_le_billet@hotmail.com
April 22nd 2008 04:04PM - Icare
thanks
April 23rd 2008 12:04AM - inz
Anyone know how to get this code to work via the right click menu? I want fullscreen to be fired from the right click drop down.
Cheers
Cheers
April 24th 2008 05:04AM - Mark
i am using a custom cursor, too. (custom mouse)
when i run the page in opera my mouse disappears, basic mouse stays still without moving. other browsers works fine.
can anyone help me with that?
note: i use the last versions of both flash and opera.
when i run the page in opera my mouse disappears, basic mouse stays still without moving. other browsers works fine.
can anyone help me with that?
note: i use the last versions of both flash and opera.
June 5th 2008 04:06AM - aykha
Is it possible to go full screen and still allow text entry?
June 9th 2008 07:06AM - Robin
Hi!
I find your Flash tips very helpfull, thank you for your work!
If you may help me, please explain how to send a user feedback like this one, from a Flash Interface with a form to an e-mail?
"MNM"
I find your Flash tips very helpfull, thank you for your work!
If you may help me, please explain how to send a user feedback like this one, from a Flash Interface with a form to an e-mail?
"MNM"
June 9th 2008 11:06AM - MNM
jukuktk
June 17th 2008 06:06AM - samy
when I post the example html (above) on my page it works, but when I use the swf file from the downloaded source file - it doesn't work. I have put the <param name="allowFullScreen" value="true" /> but I think the problem is with the swf??? can anyone help?
June 22nd 2008 08:06PM - dan
is this version able to do full screen - 9.0.0.498 ? thanks
June 22nd 2008 08:06PM - dan
Dan, I'm pretty sure the javascript function is nmot receiving the param allowFullScreen. You are aware that IE has settled with eolas and is no longer using 'click here to activate'?
June 23rd 2008 10:06AM - John
Cheers John got it working.. . .legend!
June 24th 2008 10:06PM - dan
the script works well wid as 2, but wt to do with as3??, pl help
July 15th 2008 01:07AM - bharathi
It's really superb... Good Job...
August 1st 2008 04:08AM - Dhiren
Does anyone know how to set flash .exe file fullscreen on vista OS ?
August 1st 2008 08:08AM - Piter
Hi,
I added a movieclip inside the main movie to keep my clip centered, however the toggle button switches position when I go fullscreen & then centers on top of my movie when I return...?
How can I keep the toggle button at one specific point in the movie ?
THANKS !
I added a movieclip inside the main movie to keep my clip centered, however the toggle button switches position when I go fullscreen & then centers on top of my movie when I return...?
How can I keep the toggle button at one specific point in the movie ?
THANKS !
August 15th 2008 02:08PM - Jonny
congrats for the tutorial
:))
:))
August 15th 2008 04:08PM - Leo
I had no problems with the code, but when I click the button my .swf doesn't resize. Instead it goes to the top left corner. Any ideas?
August 22nd 2008 12:08AM - Jounior
excellent work
August 26th 2008 01:08AM - vijay
i changed the button position but it doesnt work. for eg:
i positioned the button bottom of the stage, but when i pressed the button, that time the button is position center of the stage. But i want same position in fullscreen mode. how is it possible..... if possible please mention the sample of site
i positioned the button bottom of the stage, but when i pressed the button, that time the button is position center of the stage. But i want same position in fullscreen mode. how is it possible..... if possible please mention the sample of site
August 26th 2008 01:08AM - SalemVJN
HI I AM MANGESH. YOUR GIVEN SCRIPT WORKS VERY FINE.
THANK YOU VERY MUCH. THANKS A LOT.
THANK YOU VERY MUCH. THANKS A LOT.
August 27th 2008 02:08AM - Mangesh
I also want to know why when I change to fullscreen, the text entry is not allowed. What is the problem? How can I solve ???
August 31st 2008 11:08AM - gigi
hi, excellent script works in IE & Firefox in Windows but cant make it work in Firefox and Safari in MAC. Can anyone help? tyvm
September 1st 2008 12:09PM - Arj
Hi guys, what should i do to let it work using actionscript 3.0?
September 17th 2008 02:09AM - Christelle
Hi guys, what should i fix so this could work in actionscript 3.0?
thank you
thank you
September 17th 2008 02:09AM - Christelle
Hi! Thanks!
Super tutorial!
Super tutorial!
September 17th 2008 05:09AM - Kacsa
Hello John,
nice tutorial..anyway i am facing a little troubles regarding the browser set up.
As i exec the index file the setup of the showed content is aligned to the left upper corner "TL" as i press the toggle full screen everything goes fine. after going back from full screen everything is fine...i have just the problem with the first show. Please could you help me with this?
Thank you
R
Tomas
nice tutorial..anyway i am facing a little troubles regarding the browser set up.
As i exec the index file the setup of the showed content is aligned to the left upper corner "TL" as i press the toggle full screen everything goes fine. after going back from full screen everything is fine...i have just the problem with the first show. Please could you help me with this?
Thank you
R
Tomas
September 19th 2008 05:09PM - Tomas
Tomas... I just commented out the alignment and adjusted it in the html publish preferences. Works fine for me.
Thanks for the tutorial!
Thanks for the tutorial!
October 15th 2008 10:10AM - Fougie
For all the people who can't get this to work in Firefox, add allowFullScreen="true" somewhere inside the embed tag. Firefox doesn't seem to accept parameters declared outside of this tag. My object tag reads as follows:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="200" id="34-fullscreen" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="34-fullscreen.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="34-fullscreen.swf" quality="high" bgcolor="#cccccc" width="400" height="200" name="34-fullscreen" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Obviously, not all of this junk is necessary, but it does work :)
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="200" id="34-fullscreen" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="34-fullscreen.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="34-fullscreen.swf" quality="high" bgcolor="#cccccc" width="400" height="200" name="34-fullscreen" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Obviously, not all of this junk is necessary, but it does work :)
October 21st 2008 11:10AM - Scott
Hi,
Thx for this cool piece of code.
Just a remark: sometimes you need to change the allowFullScreen variable at TWO locations. The first is in the object tag, as mentioned before, the second is in the javascript tag:
<script language="javascript">
if (AC_FL_RunContent == 0) {alert("This page requires AC_RunActiveContent.js.");
} else {AC_FL_RunContent( (...) 'allowFullScreen', 'true', (...)}
</script>
Thx for this cool piece of code.
Just a remark: sometimes you need to change the allowFullScreen variable at TWO locations. The first is in the object tag, as mentioned before, the second is in the javascript tag:
<script language="javascript">
if (AC_FL_RunContent == 0) {alert("This page requires AC_RunActiveContent.js.");
} else {AC_FL_RunContent( (...) 'allowFullScreen', 'true', (...)}
</script>
October 25th 2008 04:10PM - Minh-Duc
thank you very much it's working. thanks a lot
November 5th 2008 12:11AM - mangesh
it does work on html file but my flash file not set full screen.
whats the problem.
whats the problem.
November 25th 2008 06:11AM - Ripon
wooow i was looking exactly this !!!
thanks a lot!!
cheers!!
thanks a lot!!
cheers!!
November 26th 2008 02:11AM - migueee
sao tui thay no ko hieu qua gi het. chan, ai la nguoi Viet thi xin comment
November 28th 2008 02:11AM - smalltalk
is it possible to toggle full screen just a swf embedded in another swf? i have several movie.swf's embedded in my website.swf and i wanted just the movie.swf's to full screen.
November 29th 2008 12:11PM - antoniomg
I have a SERiOUS PROBLEM...please tell me....ive looked everywhere.....i have adobe flash player...and i simply want to watch a flash movie in fullscreen instead of a tiny box...NO I DONT WANT TO REPROGRAM THE WAY EVERYTHING AND WHATEVER NOT WORKS....is it impossible to just tell this player i want it to fit my screen? or am i RETARDED?
December 2nd 2008 11:12PM - RageMachine
Really dumb question I'm sure - where is "stage" defined?
What is it?
What is it?
December 3rd 2008 01:12PM - dj
I'm trying to have html links that can resize a movie bewteen 2 set sizes and fullscreen, with javascript - can it be done?
December 3rd 2008 01:12PM - dj
Let me RE ASK that question a day later...I am a mere user who wishes to activate fullscreen mode while watching a certain flash video. I am not a programmer. I dont understand why this flash video has no fking button to allow fullscreen and others do but why is that???...is there some freakin hack that you guys can link me to force fullscreen?
December 3rd 2008 06:12PM - RageMachine
RageMachine, it would be possible if you used your own flash player with a fullscreen button or created a flash file that reads in flash files and can resize them to full screen, neither of which are really simple hacks, since you'd probably want to replace the html as well.
December 3rd 2008 07:12PM - John
hi, great tutorial! i wanted to know if i could add this allow fullscreen coding into this format:
<script language="javascript" type="text/javascript">
var fl = new Flash("main.swf", "main", "100%", "100%", "8", "#000000", "");
fl.render();
</script>
Thanks!
<script language="javascript" type="text/javascript">
var fl = new Flash("main.swf", "main", "100%", "100%", "8", "#000000", "");
fl.render();
</script>
Thanks!
December 14th 2008 08:12AM - adrien
The tutorial is great, simple and efficient. But my problem is this: i have a main mc in which I load an external swf.. that is the one for which i'd like to toggle fullscreen. ONLY for this one, the main movie remains unchanged. But when i hit the button it just fullscreens the whole movie. Any suggestions?
December 15th 2008 09:12AM - florin187
Below code should work if using swf object to embed
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<a href="http://adobe.com/go/getFlashPlayer">Click to download flash player
</a></div>
<script type="text/javascript">
var so = new SWFObject ("main.swf", "sotester", "760", "540", "8", "#000000");
so.addParam("fullscreen", "true");
so.addParam("scale", "noscale");
so.addParam('salign', 'lt');
so.write("flashcontent");
</script>
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<a href="http://adobe.com/go/getFlashPlayer">Click to download flash player
</a></div>
<script type="text/javascript">
var so = new SWFObject ("main.swf", "sotester", "760", "540", "8", "#000000");
so.addParam("fullscreen", "true");
so.addParam("scale", "noscale");
so.addParam('salign', 'lt');
so.write("flashcontent");
</script>
December 22nd 2008 03:12PM - webfaCe
Great article !
December 29th 2008 02:12AM - kaan
Is it possible to go full screen and still allow text entry?
January 5th 2009 04:01AM - kiruba
I have a fullscreen flash site but when I load it its loading to large and then when i do fullscreen mode its still to big how can I get it to fit inside of the persons screen correctly?
January 6th 2009 09:01AM - alvin
Great question kiruba, and an universal one: "Is it possible to go full screen and still allow text entry?"
January 6th 2009 01:01PM - Ru
Well... looks like: "Users cannot enter text in text input fields while in full screen mode. All keyboard input and key-related ActionScript is disabled while in full screen mode, with the exception of the keyboard shortcuts that take the viewer out of fullscreen mode."
January 6th 2009 01:01PM - Ru
And, in Adobe bugs:
"Not a bug. While in full screen mode, text input is disabled by Flash Player.
For more information, see: http://www.adobe.com/support/documentation/en/flashplayer/9/releasenotes.html
[quote]
Although full-screen mode does not support text input, the text input cursor will display over input text fields. Workaround: dynamically convert input fields to dynamic text fields or disable TextInput components when in full-screen mode. (182474)
[/quote]
and: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
[quote]
Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode.
[/quote] "
"Not a bug. While in full screen mode, text input is disabled by Flash Player.
For more information, see: http://www.adobe.com/support/documentation/en/flashplayer/9/releasenotes.html
[quote]
Although full-screen mode does not support text input, the text input cursor will display over input text fields. Workaround: dynamically convert input fields to dynamic text fields or disable TextInput components when in full-screen mode. (182474)
[/quote]
and: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
[quote]
Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode.
[/quote] "
January 6th 2009 01:01PM - Ru
And: "Viva a Pátria, Viva o Benfica! A crise e os Delfins não passarão!" Rui Cubano.
January 6th 2009 01:01PM - Ru
First of all a big THX for this tutorial John!
And to Sean for the final hint to get this working in firefox finally after million times of testing! :D
After publishing your flash file to html change the following things in the html code:
somewhere in the <script language="javascript"> tag, there is a very sneaky line: 'allowFullScreen', 'true',
delete the <noscript> and </noscript> tags (they somehow are rubbish ;)
and replace the complete object part with this:
<object data="Test.swf"
type="application/x-shockwave-flash" width="400" height="200" >
<param name="movie" value="Test.swf" />
<param name="allowFullScreen" value="true" />
</object>
i started wondering why the "object"-stuff in the source code from this page worked perfectly fine, while the adobe standard export-code did not.
And to Sean for the final hint to get this working in firefox finally after million times of testing! :D
After publishing your flash file to html change the following things in the html code:
somewhere in the <script language="javascript"> tag, there is a very sneaky line: 'allowFullScreen', 'true',
delete the <noscript> and </noscript> tags (they somehow are rubbish ;)
and replace the complete object part with this:
<object data="Test.swf"
type="application/x-shockwave-flash" width="400" height="200" >
<param name="movie" value="Test.swf" />
<param name="allowFullScreen" value="true" />
</object>
i started wondering why the "object"-stuff in the source code from this page worked perfectly fine, while the adobe standard export-code did not.
January 7th 2009 02:01AM - ungabunga
each time i get the fullscreen off, the swf is centered, but before i do this, is aligned to the left top of the html, does anybody knows how i can fix this? i mean, the concent always centered
January 9th 2009 10:01AM - canute
nop
i just solve it
put this on the code frame if anybody wants the fs btn centered:
toggleFullScreenButton._x = Stage.width/2;
toggleFullScreenButton._y = Stage.height/2;
i just solve it
put this on the code frame if anybody wants the fs btn centered:
toggleFullScreenButton._x = Stage.width/2;
toggleFullScreenButton._y = Stage.height/2;
January 9th 2009 10:01AM - canute
am i missing something? in the tut i can't find <script language="javascript"> so i don't have this part of the code!!
i was trying to do what ungabunga says..
i can make it work in IE but not in firefox..
i was trying to do what ungabunga says..
i can make it work in IE but not in firefox..
January 10th 2009 09:01AM - sonatine
ok, now it works!!! i missed that post from scott in a first reading..
just put: allowFullScreen="true" after allowScriptAccess="sameDomain" in the html file
just put: allowFullScreen="true" after allowScriptAccess="sameDomain" in the html file
January 13th 2009 03:01PM - sonatine
thx for the tut. works great! cheers
January 17th 2009 06:01AM - alex
Thanks a lot!
January 21st 2009 05:01PM - oyun oyunlar oyna
Hey friends, the best web browsers around are..
Firefox, Chrome, IExplorer, Opera, Flock.. Forget netscape..Its outdated.Its next versions will not be released.
The above toggle fullscreen button works well in Firefox, IExplorer,
Flock..But it does not work in Chrome and Opera..
If any one has an idea how to work it in opera n chrome please let me know.May be some javascript may help.
Check the below website .. It has a fullscreen button at the top right corner.
www.kingoftollywood.com
Firefox, Chrome, IExplorer, Opera, Flock.. Forget netscape..Its outdated.Its next versions will not be released.
The above toggle fullscreen button works well in Firefox, IExplorer,
Flock..But it does not work in Chrome and Opera..
If any one has an idea how to work it in opera n chrome please let me know.May be some javascript may help.
Check the below website .. It has a fullscreen button at the top right corner.
www.kingoftollywood.com
February 2nd 2009 07:02AM - Vinay Raj
hi .. Please help. I want to use auto fullscreen browser in flash.
Example.. When i click my link, i want to be appear auto fullscreen
browser. Please help me..
Example.. When i click my link, i want to be appear auto fullscreen
browser. Please help me..
February 4th 2009 05:02AM - tinnwemg
Thank you very much!!!
I solve my problem!!!
:DDDDDDD
I solve my problem!!!
:DDDDDDD
February 4th 2009 08:02AM - kitenmilk
There is bug with input text field!
Anyone knows how to fix it?
Anyone knows how to fix it?
February 4th 2009 07:02PM - nele
For More Detailed tutorial goto
http://julian.empiregn.com/2007/2/22/How-to-create-true-fullscreen-movies-with-Flash.
http://julian.empiregn.com/2007/2/22/How-to-create-true-fullscreen-movies-with-Flash.
February 8th 2009 10:02PM - sandeep
I've got it to work, but how do you center the swf file when it is fullscreen? It just displays in the top left, I've tried putting a container but it doesn't seem to work.
February 9th 2009 12:02AM - Nai
> "There is bug with input text field!"
@nele - this is not a bug, the flash player security settings are set so that no keyboard input is allowed in fullscreen mode. (except when run as an air application)
Ru already stated this earlier in the comments.
> "I've got it to work, but how do you center the swf file when it is fullscreen?"
@Nai - If you have your stage align setting set to "TL", it will reposition itself at (0,0). Remove this setting and the flash should align itself centered.
You can also add an event listener to the stage - then you can dynamically position elements on the screen.
Hope this helps,
Natacha
February 14th 2009 10:02AM - Natacha
thank you very much, very helpfull and easy to apply!
February 24th 2009 11:02AM - leo
hi,when i full screen my file is at left side top corner,any way to fix it ? and the button when i full screen,it is at the center,is blocking my file,how can i make it go away? thx this AS really help me a lot ,THX!! but just this problem is bothering me.any one ? need some idea !!!
March 2nd 2009 12:03AM - christopher
guys..i dunno y it isn wrking for me...i jus put an invisible button n coded in it...n it simply doesnt wrk..
March 2nd 2009 03:03AM - Archana
how do you toggle fullscreen in swishmax1 or swishmax2
March 3rd 2009 03:03AM - trevor
I use the command
fscommand("fullscreen", "true");
fscommand("fullscreen", "false");
much simpler ;)
fscommand("fullscreen", "true");
fscommand("fullscreen", "false");
much simpler ;)
March 4th 2009 11:03AM - shortscript
hey, many thanx for this tut. works perfectly in chrome, firefox, safari, explorer, but it wont work in opera, and i realy dont know why. can someone help? anyways, thank you;)
blind
blind
March 7th 2009 11:03AM - blind.aurora
Someone has any idea how to activate the InputText in fullscreen mode?
Or if somehow this can be making new versions of CS3 or CS4 ??
Or if somehow this can be making new versions of CS3 or CS4 ??
March 8th 2009 08:03PM - AirFire
thanks mate!
that worked well.
for those who weren't able to make it, it's like this:
btnFullScreen.onRelease = function():Void{
Stage.displayState = Stage.displayState == "normal" ? "fullscreen" : "normal";
};
//And then in your HTML, set all the allowFullscreen parameters from false to true. Like:
AC_FL_RunContent('allowFullScreen', 'true', ...);
<param name="allowFullScreen" value="true" ... />
<embed allowFullScreen="true" ... />
And then click the Flash button in the browser. That should work :)
that worked well.
for those who weren't able to make it, it's like this:
btnFullScreen.onRelease = function():Void{
Stage.displayState = Stage.displayState == "normal" ? "fullscreen" : "normal";
};
//And then in your HTML, set all the allowFullscreen parameters from false to true. Like:
AC_FL_RunContent('allowFullScreen', 'true', ...);
<param name="allowFullScreen" value="true" ... />
<embed allowFullScreen="true" ... />
And then click the Flash button in the browser. That should work :)
March 9th 2009 07:03AM - prezire
Hey man! Works for me! Awesome.
If you want to put it center stage instead of Top Left "TL" - I just changed the actionscript on the frame to say:
Stage.align = "MM";
If you want to put it center stage instead of Top Left "TL" - I just changed the actionscript on the frame to say:
Stage.align = "MM";
March 26th 2009 10:03AM - sideswitch
Whilst Fullscreen offers a solution to one problem it creates two.
You can not enter text
Any web links you add returns the site to non full screen upon activation. Very sloppy.
As so often with Flash solutions its one step forward two steps back.
You can not enter text
Any web links you add returns the site to non full screen upon activation. Very sloppy.
As so often with Flash solutions its one step forward two steps back.
March 31st 2009 09:03AM - dandare
Does this work with flash 8?? I've been messing around with a site navigation tool and I want it to be able to go full screen. I'm unable to test it right now. Because you said with the update to the flash PLAYER, I assumed it was possible to use the same code in flash 8 with a newer player. Is this the case? It'd be nice to know before I start majorly rearranging stuff for a full screen mode. Thanks
April 2nd 2009 11:04AM - Maximum
thanks dude, its really work...
April 3rd 2009 02:04AM - Ranjan
The toggle fullscreen button doesn't work for me on Chrome and Flash 10,0,22,87 in fullscreen mode. The rollover effects don't work either. It's as if no mouse events are being triggered...
Anyone run into this issue? It works fine in FF and IE7.
Anyone run into this issue? It works fine in FF and IE7.
April 3rd 2009 04:04PM - kidjutsu
Ah, works perfectly :]
April 5th 2009 09:04AM - Antoan
Oh, and kidjutsu, it doesn't work in Safari either... I hope Adobe solves this problem in the later versions of flash :|
April 5th 2009 09:04AM - Antoan
AWESOME - works great! so easy to do! thank you!
April 8th 2009 10:04AM - corey
Now works in FireFox adding allowFullScreen="true" somewhere inside the embed tag, but keeps not working in Chrome! Any help? tks.
April 9th 2009 09:04PM - Civali
Now works fine in Chrome, but in fullscreen all buttons and form fields stay freeze!
April 10th 2009 08:04PM - Civali
Tanx alot. i thought it works with only CS3 but it's perfect with 8 also. it works fine.
April 17th 2009 06:04PM - okeTunde
How can i perform this operation in Dreamweaver?
Basically I want a button to click to take my website to fullscreen mode, not open a movie image or anything else just the actual website. I don't have Flash, just DW.
Grateful for any help/advice
Basically I want a button to click to take my website to fullscreen mode, not open a movie image or anything else just the actual website. I don't have Flash, just DW.
Grateful for any help/advice
April 24th 2009 07:04AM - mikael
thanks alot ....................
April 27th 2009 06:04AM - Tamer
Hi,
it work with allowFullScreen="true" after allowScriptAccess="sameDomain"
But if you modify the swf and put just a form, you can see that the script doesn't resize the form so all your scene isn't resize.
I'm search a tips to show a full screen flash in html without any borders (right or left) with a 1024px 768px flash document.
Help me, sorry for the message i'm french
Thanks
it work with allowFullScreen="true" after allowScriptAccess="sameDomain"
But if you modify the swf and put just a form, you can see that the script doesn't resize the form so all your scene isn't resize.
I'm search a tips to show a full screen flash in html without any borders (right or left) with a 1024px 768px flash document.
Help me, sorry for the message i'm french
Thanks
April 27th 2009 11:04AM - pacha
Can someone tell me how to make other objects in the movie disappear or hide when I go to full screen?
May 3rd 2009 02:05AM - Nate
Hi John,
Awesome tut. It has really solved my purpose. I wanted some fullscreen style of this type only as this is latest trend. Thanks a lot...
Keep up the good work and keep rocking!!!
Your Mumbai(India) Friend,
Sagar Ranpise
(Also special thanks to Scott for his valuable comment about firefox Compatibility. Thks. bro...)
Awesome tut. It has really solved my purpose. I wanted some fullscreen style of this type only as this is latest trend. Thanks a lot...
Keep up the good work and keep rocking!!!
Your Mumbai(India) Friend,
Sagar Ranpise
(Also special thanks to Scott for his valuable comment about firefox Compatibility. Thks. bro...)
May 4th 2009 05:05AM - Sagar Ranpise
Hi Nate,
Add one more layer in fla above all layers and cover up the areas with square or any shapes which u dont want other to see with the same color as ur bg or bg color and export it and check. I hope this will work. Once done please let me know. Take care bye...
With Regards,
Sagar Ranpise
Add one more layer in fla above all layers and cover up the areas with square or any shapes which u dont want other to see with the same color as ur bg or bg color and export it and check. I hope this will work. Once done please let me know. Take care bye...
With Regards,
Sagar Ranpise
May 4th 2009 05:05AM - Sagar Ranpise
Dang everytime it goes fullscreen my movie is in the top corner off centered help! :O - luis
In answer to Luis' question:
Change Line 2 from:
Stage.scaleMode="false";
to read:
Stage.scaleMode="100%";
In answer to Luis' question:
Change Line 2 from:
Stage.scaleMode="false";
to read:
Stage.scaleMode="100%";
June 2nd 2009 03:06PM - Alistair
hi, do you know how to make part of the flash resize while part of the flash won't resize after it goes fullscreen?
see this link and then skip the opening.
http://hk.promotions.yahoo.com/10th/celebration/
thanks.
see this link and then skip the opening.
http://hk.promotions.yahoo.com/10th/celebration/
thanks.
June 5th 2009 10:06AM - ed
this don't work for me
June 19th 2009 03:06PM - david
sory it is not working
July 2nd 2009 01:07AM - sandipan
Add a Comment






What do you have to do with applet html?