# Full screen popup

**URL:** <https://forum.kirupa.com/t/full-screen-popup/64258>\
**Category:** Uncategorized\
**Created:** [September 14, 2004, 4:41pm UTC](https://forum.kirupa.com/t/full-screen-popup/64258 "2004-09-14T16:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikiwaka](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rikiwaka](https://forum.kirupa.com/u/rikiwaka)\
**Post date:** [September 14, 2004, 4:41pm UTC](https://forum.kirupa.com/t/full-screen-popup/64258/1 "2004-09-14T16:41:07Z")

</div>

Hi  
I would like to launch a web site in a popup window wich adapt his size to the screen resolution of the visitor (fullscreen)  
what is the code that I have to place on the “launch” button ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 8:26am UTC](https://forum.kirupa.com/t/full-screen-popup/64258/2 "2004-09-15T08:26:17Z")

</div>

You can find actionscript for fullscreen to the behavior panel of Flash MX2004.

```auto
 
on (press) {
 //Toggle Full Screen mode
 if ($fullscreen == true) {
  fscommand("fullscreen", false);
  $fullscreen = false;
 } else {
  fscommand("fullscreen", true);
  $fullscreen = true;
 }
 //End Behavior
}

```
