Newest Articles

MegaCombs
Flash Media Player
XML Driven Pie Chart
Base Defender
Hangman Game
8 Ball Pool


Popular Articles

True Fullscreen Flash Mode
Mp3 Player with XML Playlist
Image Slider
Flash Media Player
3d Rotating Image Cube
Catapult Game


Random Articles

Flash Media Player
Custom Mouse Cursor
Storing Data Similar to Cookies
Create Pong
FLV Player
Drivable Car


Links

Foundation-Flash
MickM
TutorialQuest
Tutorialsphere.com - Free Online Tutorials
Newgrounds
TWiT
Link to SwfSpot
Swf Spot



rss feed

True Fullscreen Flash Mode

True Fullscreen Flash Mode
AddThis Social Bookmark Button
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:
  1. on(press){
  2.   toggleFullScreen();
  3. }
The code for the function toggleFullScreen and a resize listener are placed on the main stage.
  1. //Don't scale the movie when the stage size changes
  2. Stage.scaleMode="noScale";
  3. //Align the stage to the top left
  4. Stage.align = "TL";
  5. //Function to toggle between fullscreen and normal size
  6. //the toggle fullscreen button calls this function when pressed
  7. function toggleFullScreen(){
  8.   //if normal size, go to fullscreen, else go to normal size
  9.   if(Stage["displayState"]=="normal"){
  10.     Stage["displayState"]="fullScreen";
  11.   }else{
  12.     Stage["displayState"]="normal";
  13.   }
  14. }
  15. //Create a listener for each time the Stage is resized
  16. var resizeListener:Object = new Object();
  17. //Called each time the stage is resized
  18. resizeListener.onResize = function () {
  19.   //Move the button to the center of the screen
  20.   toggleFullScreenButton._x=Stage.width/2;
  21.   toggleFullScreenButton._y=Stage.height/2;
  22. }
  23. //Add the listener to Stage
  24. Stage.addListener(resizeListener);
  25.  
Example XHTML used for this applet:
<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
I'm sorry, but it doesn't work for me.
What do you have to do with applet html?
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
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
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

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?
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
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.
December 19th 2007 12:12PM   -   J
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 !!!
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?
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?
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" ... />
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
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?
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.
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?
April 6th 2008 05:04AM   -   emanuele
emanuele,
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); ?
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!
April 10th 2008 05:04AM   -   matt
@Kevin
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
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.
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
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
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.
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"
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
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 !
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
August 26th 2008 01:08AM   -   SalemVJN
HI I AM MANGESH. YOUR GIVEN SCRIPT WORKS VERY FINE.
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
September 17th 2008 02:09AM   -   Christelle
Hi! Thanks!
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
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!
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 :)
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>

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.
November 25th 2008 06:11AM   -   Ripon
wooow i was looking exactly this !!!

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?
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!
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>
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] "
January 6th 2009 01:01PM   -   Ru
And: "Viva a P
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.
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;
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..
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
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
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..
February 4th 2009 05:02AM   -   tinnwemg
Thank you very much!!!
I solve my problem!!!
:DDDDDDD
February 4th 2009 08:02AM   -   kitenmilk
There is bug with input text field!
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.
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 ;)
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
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 ??
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 :)
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";
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.





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.
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
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
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...)
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
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%";
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.
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
cool script, is there any way to start the animation in full screen with out push the bottom,

thx man
July 12th 2009 06:07PM   -   javier samudio
Thanks so much for this. Works great for me. I think it would be a good idea to add Scott's code for Firefox to the main article too.
July 31st 2009 10:07AM   -   Pablo-747
Hey!

I have a problem "publishing" .swf file on web-page.

At the beginning I should tell you that I'm using Camtasia Studio to produce video in .swf format. This program adds it's own controls - which if of course great, because I need them + I have a web page built in Joomla!

Video is recorded in 1280x1024 ... but I put it on my page which is half that size (560x...).
Everything works OK, but the problem is that when I resize my video, controls get smaller as well! I don't want that, because the controls get so small, that you're not really able to see the buttons (or find the one for FULL SCREEN option).

Any help how I could avoid getting the controls smaller?

My code in HTML looks like that:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="560" height="460">
<param name="width" value="560" />
<param name="height" value="460" />
<param name="play" value="false" />
<param name="allowfullscreen" value="true" />
<param name="src" value="http://www.bi4dynamics.com/images/videos/swf/bi4_r_pv_3ok_controller.swf" />
<embed type="application/x-shockwave-flash" width="560" height="460" play="false" allowfullscreen="true" src="http://www. ... .swf"></embed>
</object>
August 17th 2009 09:08AM   -   iceman
5 hours I trying to solve problem with full screen in opera and safari. the problem was in full screen safari and opera disables all events and seems flash only like a picture. nothing works accept ESC key.
problem solution is to use button on(release) not on(press)

thanks to SANDEEP for this link where I found this solution
http://julian.empiregn.com/2007/2/22/How-to-create-true-fullscreen-movies-with-Flash
August 26th 2009 07:08PM   -   BIM
I have downloaded and after installing this is not working for me.I created a button and inserted the code but still not working. I use flash 8 pro with as 2.00. Will you please guide me how I can make this work.
thanks.
August 28th 2009 04:08AM   -   Raghavendra
That's nice, thanx
September 11th 2009 10:09AM   -   oyun
I trid but it do'nt work in flash8.
Can u help me please?
September 15th 2009 04:09AM   -   Deepak
Good Work! I been looking for this code long time ago and I found here!

A BIG THANK YOU!
September 16th 2009 02:09AM   -   Timmy
How to make my flash center and middle. It is center and middle when it in normal size. But it on the left top of the page when it full screen.

Please reply..
September 16th 2009 04:09AM   -   Bali
HI! Bali i can help you with your problem... just email me then i'll send you the files for the example. I made the full screen with image background and things center footer what ever you like you cant take it from the example... here's my email info@jraycv.com
September 24th 2009 05:09AM   -   JRAYCV
thanks brother
September 25th 2009 09:09AM   -   meyve
Thank you very much
it works perfect
September 26th 2009 04:09PM   -   vinc
Thank you.. worked quite good :D.. now have to fix the centering option.. hehe.. :D
September 28th 2009 08:09AM   -   Van
and thanks to BIM, after I checked on the pc on Chrome, I went to the Mac and was not working on Opera, but thanks to BIM could fix it.. so remember to change the button code from on(press) to on(release) !!
September 28th 2009 09:09AM   -   Van
How I used the print commad in flash with the using of button
October 3rd 2009 03:10AM   -   mak
can anyone guide me on how to get this script and code to work using alligator flash designer? I do not have adobe flash program
October 9th 2009 03:10PM   -   mike
Thank you very much. It works great! :)
October 12th 2009 03:10PM   -   Erik
How do I change the default dialog message in Fullscreen Mode ( Press Esc to close fullscreen mode) to another language? Is this possible?
October 16th 2009 11:10PM   -   FromBRASIL
Hi man,

Great work. I was googling for Flash FullScreeen but it didn't really worked until I reached here. All that I didn't knew was:
Stage["displayState"]="fullScreen";

Loads of thanks :)
Be Blessed.
October 26th 2009 07:10AM   -   Muhammad
thanks. i got lucky.i will create some tricks to make it stand alone. more power.
October 30th 2009 08:10AM   -   nhotz
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 10:11PM   -   Delight
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 10:11PM   -   Delight
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 11:11PM   -   Delight
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 11:11PM   -   Delight
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 11:11PM   -   Delight
This is the easiest tutorial on Full Screen. A small chunk of code that replaces all the other multi-page tutorials. Great instructions!
November 4th 2009 11:11PM   -   Delight
what about if i want to load the browser and automatically press the button? what should be the exact code for that? hope u got my point. thanks in advance
November 6th 2009 02:11AM   -   tim
nice
November 6th 2009 09:11AM   -   vigrx
Brilliant, it saved a lot of work and time that i used to waste finding some long and difficult to embed to the needs but this one is great, anyhow i need to remove the message comes in the middle of pressing ESC, can give some amended code to use to remove that bar.
November 6th 2009 07:11PM   -   sticker printing
great !
November 9th 2009 06:11PM   -   egypt web designe
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
November 10th 2009 04:11PM   -   banjodrill
thanks !!!! great work
November 12th 2009 11:11AM   -   Tigran
Can anyone tell me how to align my movie centre vertically and horizontally in fullscreen mode? As apose to just TL, T, TR, etc etc... Im using the code above but it automatically jumps to the top of the screen... Thanks!
November 18th 2009 04:11PM   -   Steve
the tutorial on True Fullscreen Flash Mode is really simple. i will try it so i can put it in practice in some of my works.
November 23rd 2009 11:11PM   -   web design
Great info in Fullscreen Flash Mode. I save lots of time with this.
November 23rd 2009 11:11PM   -   oes tsetnoc
so nice post about flash. flash developers will love it.
November 23rd 2009 11:11PM   -   guildford
How to make my flash center and middle. It is center and middle when it in normal size. But it on the left top of the page when it full screen.
Fantastic!!
Thanks.
November 24th 2009 10:11PM   -   Clinica de estetica
Why does the stage width changes randomly in fullscreen?
November 26th 2009 04:11PM   -   PinBoy4000
It works for me!!But the flash buttons dont roll..
Does anybody know how to decrease or increase the swf according what resolution you have??
November 28th 2009 12:11AM   -   Quino
I like it , it very simple, but nice
November 30th 2009 12:11AM   -   eye serum premier
Thank You So Much ...... Great Code ...... Best Person ...... Thank God
December 2nd 2009 06:12AM   -   SantaClaus
Do you normally build your flash objects using Adobe Flash Pro?
December 5th 2009 10:12PM   -   Adobe Flash Pro
Thanks for the tutorial and code.
December 9th 2009 07:12PM   -   wealthy affiliate review
Thanks for a nice share!
December 10th 2009 02:12PM   -   ramon1982
That is an awesome cube, thanks for sharing.
December 13th 2009 07:12AM   -   dental
Always appreciate quality work that I can put into use, yeah thanks is the word :)
December 14th 2009 02:12PM   -   David
It works in newest Mozilla and Flash update, but you need to go to the source of this site and grab the code between swf, check if fullscreen is there added and make a button which launches the function and Voila ;)) Thanks man.
December 15th 2009 07:12AM   -   Bartek Smykowski
If you publish this movie as a swf / html then AllowFullScreen appears in 2 places in the html.
You need to change both the javascript version (for browsers that use javascript) as well as the noscript version as indicated in the tutorial.

'allowFullScreen', 'false',

and change it to:-

'allowFullScreen', 'true',

If you don't change the Javascript text and your browser uses javascript then it won't work.

December 17th 2009 08:12AM   -   Gary
good one!
December 17th 2009 10:12AM   -   jobs for 18 year olds
gooooooddd :)

it help me
December 19th 2009 04:12AM   -   big baga
thanks!
December 25th 2009 10:12PM   -   china wholesale
Yes, this is what i m looking for. Nice script.
December 31st 2009 04:12PM   -   presentation folders
Great script! thanks for posting
January 1st 2010 03:01PM   -   hemorhods
can anyone guide me on how to get this script and code to work using alligator flash designer? I do not have adobe flash program
January 1st 2010 09:01PM   -   Cialis
This is a very good script so far. I am using SAFARI 4.04 and the script worked fine. At first I had problems with the stage moving to the TOP LEFT of the screen. But I went back into Flash and changed the script on the main stage

From:
3. //Align the stage to the top left
4. Stage.align = "TL";

To:
//Align the stage to the center
Stage.align = "C";

Also this is what my embed tag looks like in the html:

<embed src="LogoDesign.swf" width="1000" height="650" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" allowfullscreen="true" align="middle">
January 2nd 2010 10:01AM   -   ksb
actually i have the problem in same line so i get the solution from my friend
January 3rd 2010 10:01AM   -   custom sticker printing
After I updated the mozialla firefox flash plugin to newest version this script is work fine.
January 4th 2010 08:01AM   -   jobs
Hi there!!

thx for this tutorial. everthing works fine for me.
can anyone give me information about how the moving stars background and the color switch ( down-right) is made on this webpage: http://www.kingoftollywood.com/index1.html
or whrere i can find some tutorials to learn how to do this stuff!!

thx a lot
rick
January 10th 2010 11:01AM   -   SLICKRICK

Please can anyone help me, I can not seem to download the Flash or Shockwave Player - My window asking me to install, but then the film will not load full installation. I do not understand why, especially since my flash seemed to work until I was prompted to install it?! And in my computer programs is not "Adobe Flash Player 9 ActiveX 'I have Windows Vista that was already on my laptop when I bought it. Can anyone help me???
January 11th 2010 06:01PM   -   Cash Advance
Thanks
January 14th 2010 09:01AM   -   projeksiyon
Buy wellbutrin online now! No prescription needed!
January 14th 2010 05:01PM   -   Buy Wellbutrin SR
The blog is really informative and i like to share it with my friends we can easily learn more about web designing through this post thanks for post
January 15th 2010 08:01PM   -   evening dresses
This story is superb! Everyones programmer impressed over hear!
January 17th 2010 05:01AM   -   original screen
This story is superb! Everyones programmer impressed over hear!!
January 17th 2010 05:01AM   -   Warcraft Millionaire
Buy wellbutrin online now! No prescription needed!!
January 17th 2010 05:01AM   -   wow gold guide
hello admin, I found your blog from yahoo and read a few of your other posts.They are awesome. Please keep it up!!
January 17th 2010 05:01AM   -   Xbox 360 Repair
Please can anyone help me, I can not seem to download the Flash or Shockwave Player - My window asking me to install, but then the film will not load full installation. I do not understand why, especially since my flash seemed to work until I was prompted to install it?! And in my computer programs is not "Adobe Flash Player 9 ActiveX 'I have Windows Vista that was already on my laptop when I bought it. Can anyone help me????
January 17th 2010 05:01AM   -   Copy Xbox 360 Games
I found your website perfect for my needs. It contains wonderful and helpful posts.
January 18th 2010 10:01PM   -   Ngan hang
Wow, it is very rare facts just about this post! Even the <a href="http://www.4writers.net">online writing jobs </a> can not simply get by with this.
January 19th 2010 06:01AM   -   Odry20
Nice useful tutorial
January 19th 2010 08:01AM   -   Ares
Really? Hmmm...That's kinda what I thought..
January 19th 2010 04:01PM   -   Cash Gifting Programs
it mean than flash player 9 ,8 is better than older one. anyway that is a new a great work done by John Bezanis. thanks for shearing.
January 20th 2010 04:01PM   -   dreptul muncii
I have been using Flash for so long but this is one detail I have overlooked. I have been too focused on other aspects of sites.
January 20th 2010 08:01PM   -   What is SEO
Thats a very good tutorial. Just awesome.
January 21st 2010 05:01AM   -   mma pound for pound
Good code. Bookmark it.
January 21st 2010 12:01PM   -   fullscreen war airplanes
AARER
January 24th 2010 06:01AM   -   evening dresses
True Fullscreen Flash Mode
January 24th 2010 10:01AM   -   Ares 5
Its really good work that stolen my heart. Its what that I really needed and struggling from so many days. Thanks.
January 25th 2010 04:01AM   -   horse racing gambling
hmmm.. can't seem to get it working- I'm using firefox, will that make a difference?
February 4th 2010 08:02AM   -   call answering
If you try to find place where you can get <a href="http://www.prime-resume.com">resume</a> here is very adept place for you about this topic, which keep examples and gives an opportunity to learn how make great CV resumes . But this site is more curious, and more conducive.
February 5th 2010 06:02AM   -   PiperdE
Special thank for good post.
February 5th 2010 09:02PM   -   à¹‚หลดเพลงà
Thank for the information
February 6th 2010 07:02AM   -   à¹‚หลดเพลงm
Special thank for good post.
February 10th 2010 04:02AM   -   à¹‚หลดเพลงà
Special thank for good post.
February 10th 2010 08:02AM   -   à¹‚หลดเพลงà
too many thanks to you.
I am looking for this exactly.
February 11th 2010 10:02PM   -   sonalika
Thanks for this flash help!
February 12th 2010 06:02AM   -   Evee
Thanks man http://www.walakasaloloko.info/
February 12th 2010 06:02AM   -   Evee
The <a href="http://www.master-dissertations.com">thesis</a> service could provide people with the masters thesis but the interesting topic associated with this good post students can find out on this site only.
February 20th 2010 08:02PM   -   Grace26
Very oft that falls out that you are lack of free time to finish the thesis help just about this good post. Some different people make a big problem of it, just because some of them do not get know about <a href="http://www.primedissertations.com">thesis service</a>, but we will give you suggests about right ways to find the perfect <a href="http://www.primedissertations.com">custom dissertation</a> and the way to buy dissertation online affordable.
February 20th 2010 10:02PM   -   CatherinbG
All students are willing to have a doctoral degree, but what is the way to get this? We would advice to find for the <a href="http://www.exclusivethesis.com">dissertation writing service</a> to purchase the example of thesis just about this good topic from. I took it and reseived high degree.
February 21st 2010 09:02PM   -   vpJoan
If you try to find place where you can <a href="http://www.essaysprofessors.com">buy term paper</a> or <a href="http://www.essaysprofessors.com">buy research papers</a> here is very super-duper place for you about essays writing, which give examples and gives an fortune to learn how make scrutiny . But this site is more curious, and more effectual. So don't be lazy and write your own or <a href="http://www.essaysprofessors.com">buy essay</a> about this post. Thanks.
March 3rd 2010 10:03AM   -   LoriStone
Thnx to SANDEEP! But it is weird why chrome doesn't understand the flash press event :0...
Anyway the full screen is working just fine with chrome.
March 7th 2010 03:03PM   -   CharbelAC
With the aim to preclude the mistakes in some thesis mba, it would be better to buy the superior theme close to this good post in the <a href="http://www.master-dissertations.com">thesis writing</a> service in web. It is easier to have the academic success getting this great way.
March 9th 2010 06:03AM   -   YoungNash
Flash can not only play videos, it can also easily go full screen (without the chrome) to run them with hardware acceleration.
March 10th 2010 10:03PM   -   Flv Player
Add a Comment
name:
website (optional):
captcha type the characters into the box
message (5000 characters or less):