# Full screen browser swf

**URL:** <https://forum.kirupa.com/t/full-screen-browser-swf/263249>\
**Category:** flash\
**Created:** [June 13, 2008, 6:20pm UTC](https://forum.kirupa.com/t/full-screen-browser-swf/263249 "2008-06-13T18:20:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkohne](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mkohne](https://forum.kirupa.com/u/mkohne)\
**Post date:** [June 13, 2008, 6:20pm UTC](https://forum.kirupa.com/t/full-screen-browser-swf/263249/1 "2008-06-13T18:20:23Z")

</div>

Anyone know how to accomplish the full screen functionality they use on this site:

> **[20th Century Fox | Movies In Theaters and Coming Soon | Shop for Movies on...](https://www.foxmovies.com/)**
>
> 20th Century Fox | Movies In Theaters and Coming Soon | Shop for Movies on Blu-ray, DVD, 4K Ultra HD, or Digital

When you click the “fullscreen” link it takes up the entire screen with the “Press esc to exit full screen mode”. I have used this with flv players, like [http://www.jeroenwijering.com/?item=JW\_FLV\_Player](http://www.jeroenwijering.com/?item=JW_FLV_Player), but not with swf files.

Is this hard to do?

---

<div class="post-metadata">

**Author:** ![findAll](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@findAll](https://forum.kirupa.com/u/findAll)\
**Post date:** [June 14, 2008, 12:43pm UTC](https://forum.kirupa.com/t/full-screen-browser-swf/263249/2 "2008-06-14T12:43:32Z")

</div>

Hi!  
First, go to publish settings in flash, and, in HTML tab, set Template to Flash Only - Allow Full Screen.  
Then, create a movieclip or a button with instance name myButton, go in the main timeline and put there the following code:

```auto

myButton.onRelease = function (){
    if(Stage["displayState"]=="normal"){
        Stage["displayState"]="fullScreen";
    }else{
        Stage["displayState"]="normal";
        }
    }

```

_(Note: the code above is for AS2.0)_  
Then, publish the file. To dublecheck, open the html in a text editor like notepad and see if ‘allowfullscreen’ is set to ‘true’. If so, it is OK. Now, open your file in a browser to see if it goes full screen.  
_(Note: If you wanna make an entire site to go fullscreen, take care: it is useless to put input textfields, like for contact page, because keyboard is disabled in fullscreen mode, but is enabled again when reverting to the normal browser mode)_

---

<div class="post-metadata">

**Author:** ![mkohne](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mkohne](https://forum.kirupa.com/u/mkohne)\
**Post date:** [June 14, 2008, 3:34pm UTC](https://forum.kirupa.com/t/full-screen-browser-swf/263249/3 "2008-06-14T15:34:44Z")

</div>

Exactly what I needed, thanks for the help.

---

<div class="post-metadata">

**Author:** ![mkohne](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mkohne](https://forum.kirupa.com/u/mkohne)\
**Post date:** [June 16, 2008, 3:25pm UTC](https://forum.kirupa.com/t/full-screen-browser-swf/263249/4 "2008-06-16T15:25:01Z")

</div>

One more thing. I get a weird behavior in IE with dual monitors. If the browser window is on monitor 2 and I hit full screen, the whole thing wigs out. It works fine if it is on monitor 1. Ever have an issue with this?
