# Full Screen

**URL:** <https://forum.kirupa.com/t/full-screen/261572>\
**Category:** Uncategorized\
**Created:** [May 28, 2008, 11:00pm UTC](https://forum.kirupa.com/t/full-screen/261572 "2008-05-28T23:00:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriswilson](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@chriswilson](https://forum.kirupa.com/u/chriswilson)\
**Post date:** [May 28, 2008, 11:00pm UTC](https://forum.kirupa.com/t/full-screen/261572/1 "2008-05-28T23:00:37Z")

</div>

I really like this site. [http://www.georgeglenparker.com](http://www.georgeglenparker.com)

Is the BG in Flash? How is it able to resize like it does?

Thanks

---

<div class="post-metadata">

**Author:** ![shroom](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@shroom](https://forum.kirupa.com/u/shroom)\
**Post date:** [May 29, 2008, 4:27pm UTC](https://forum.kirupa.com/t/full-screen/261572/2 "2008-05-29T16:27:39Z")

</div>

> **[Full browser images](https://www.kirupa.com/forum/showthread.php?t=252734)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

taken from the thread above:  
if you make your background image a movieclip and name it bg\_con the script below should help.

Stage.scaleMode =“noScale”;  
Stage.align = “LT”;

var stage\_listener:Object = new Object();  
stage\_listener.onResize = function():Void {  
if(Stage.height/Stage.width \> bg\_con.\_height/bg\_con.\_width) {  
img\_prop = bg\_con.\_width/bg\_con.\_height;  
bg\_con.\_height = Stage.height;  
bg\_con.\_width = Stage.height_img\_prop;  
bg\_con.\_y = (Stage.height/2)-(bg\_con.\_height/2);  
bg\_con.\_x = (Stage.width/2)-(bg\_con.\_width/2);  
} else {  
img\_prop = bg\_con.\_height/bg\_con.\_width;  
bg\_con.\_width = Stage.width;  
bg\_con.\_height = Stage.width_img\_prop;  
bg\_con.\_y = (Stage.height/2)-(bg\_con.\_height/2);  
bg\_con.\_x = (Stage.width/2)-(bg\_con.\_width/2);  
}  
}

Stage.addListener(stage\_listener);

---

<div class="post-metadata">

**Author:** ![chriswilson](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@chriswilson](https://forum.kirupa.com/u/chriswilson)\
**Post date:** [May 29, 2008, 8:45pm UTC](https://forum.kirupa.com/t/full-screen/261572/3 "2008-05-29T20:45:22Z")

</div>

Thank you.

Would this concept also work with a video…as in [http://www.natasjafourie.com](http://www.natasjafourie.com) ?

Or is this just a video component scaled to cover the BG of the stage?

---

<div class="post-metadata">

**Author:** ![shroom](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@shroom](https://forum.kirupa.com/u/shroom)\
**Post date:** [June 5, 2008, 7:09pm UTC](https://forum.kirupa.com/t/full-screen/261572/4 "2008-06-05T19:09:36Z")

</div>

[quote=chriswilson;2333229]Thank you.

Would this concept also work with a video…as in [http://www.natasjafourie.com](http://www.natasjafourie.com) ?

Or is this just a video component scaled to cover the BG of the stage?[/quote]

Haven’t tried it but it could, since it resizes the bg movieclip you assign, what ever you put in there should get resized.

---

<div class="post-metadata">

**Author:** ![trypp](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@trypp](https://forum.kirupa.com/u/trypp)\
**Post date:** [June 6, 2008, 10:03am UTC](https://forum.kirupa.com/t/full-screen/261572/5 "2008-06-06T10:03:05Z")

</div>

hi there! i designed and built [http://www.natasjafourie.com](http://www.natasjafourie.com), that sitess actually all flash bar a few tranparent png renders from AE as the nav effect, and then yes, all worked out with an equation similar to the one above to get the scaling right.

good luck 🙂
