# Scalable background

**URL:** <https://forum.kirupa.com/t/scalable-background/65315>\
**Category:** flash\
**Created:** [September 24, 2004, 10:19pm UTC](https://forum.kirupa.com/t/scalable-background/65315 "2004-09-24T22:19:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steadvibe](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@steadvibe](https://forum.kirupa.com/u/steadvibe)\
**Post date:** [September 24, 2004, 10:19pm UTC](https://forum.kirupa.com/t/scalable-background/65315/1 "2004-09-24T22:19:35Z")

</div>

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

Any suggestions??

Much Thanks,

---

<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 26, 2004, 2:42am UTC](https://forum.kirupa.com/t/scalable-background/65315/2 "2004-09-26T02:42:03Z")

</div>

u have flash which means you have dreamweaver so do the obvious and make a layer, on that layer make a table, this table should be 3 by 3 with 30% on all the squares except the middle one, where your mainswf is. If you dont have dreamweaver post and if your lucky someone will tell you how in notepad.

---

<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 26, 2004, 2:47pm UTC](https://forum.kirupa.com/t/scalable-background/65315/3 "2004-09-26T14:47:46Z")

</div>

stop being a smart \*\*\* brandon, he does not necessarily have dreamweaver, he didn’t necessarily buy studio mx. # ! @ $ you…

if what you’re meaning, steadvibe is that you have a flash movie that is set to scale to the entire page in the browser, then you may wish to look at this:  
[http://www.actionscript.org/tutorials/intermediate/Automatic\_Resize/index.shtml](http://www.actionscript.org/tutorials/intermediate/Automatic_Resize/index.shtml)

if what you’re meaning, is that you would like to centre a flash movie within a browser window, then you’d want this:

```auto
<table height=100% width=100%>
 <tr><td valign="middle">
  <center>
   <!--code for flash movie here-->
  </center>
 </td></tr>
</table>

```
