# Flash 8 full browser question

**URL:** https://forum.kirupa.com/t/flash-8-full-browser-question/260327
**Category:** Uncategorized
**Created:** [May 14, 2008, 1:59pm UTC](https://forum.kirupa.com/t/flash-8-full-browser-question/260327 "2008-05-14T13:59:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tslawrence](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@tslawrence](https://forum.kirupa.com/u/tslawrence)
#### Post date: [May 14, 2008, 1:59pm UTC](https://forum.kirupa.com/t/flash-8-full-browser-question/260327/1 "2008-05-14T13:59:12Z")

</div>

I’m trying to make a site in Flash that stays centered horizontally no matter the size of the browser. And, it also needs to stay flush at the top of the browser. A good sample is  
[http://www.waroftheworlds.com](http://www.waroftheworlds.com/)

Notice when you resize the browser or stretch it horizontally, the flash is always centered.

Does anyone know how to do this?

Thanks in advance!

Troy

---

<div class="post-metadata">

### Author: ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)
#### Post date: [May 14, 2008, 2:15pm UTC](https://forum.kirupa.com/t/flash-8-full-browser-question/260327/2 "2008-05-14T14:15:09Z")

</div>

You have to embed your .swf using swfObject 2.0

Google it, download the swfobject.js and put it in the same directory as your html file. For the html code, you can use the code generator they provide on their site.

---

<div class="post-metadata">

### Author: ![jpearson311](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jpearson311](https://forum.kirupa.com/u/jpearson311)
#### Post date: [May 15, 2008, 6:23pm UTC](https://forum.kirupa.com/t/flash-8-full-browser-question/260327/3 "2008-05-15T18:23:38Z")

</div>

You don’t need to download anything. Just use a table or a div and set it’s properties to align in the center of the page.

---

<div class="post-metadata">

### Author: ![Nick5185](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@Nick5185](https://forum.kirupa.com/u/Nick5185)
#### Post date: [May 16, 2008, 1:13am UTC](https://forum.kirupa.com/t/flash-8-full-browser-question/260327/4 "2008-05-16T01:13:36Z")

</div>

add this before your \<object\> tag:

\<div align=“center”\>

and to be safe you should add:

\</div\>

after you \</object\> tag
