# How to exactly center swf in dreamweaver?

**URL:** <https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363>\
**Category:** Uncategorized\
**Created:** [July 11, 2003, 9:36pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363 "2003-07-11T21:36:49Z")\
**Posts on this page:** 13\
**Page:** 2

<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:** [July 12, 2003, 1:02am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/21 "2003-07-12T01:02:52Z")

</div>

That code has nothing to do with opening a window without any buttons  
:-\

---

<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:** [July 12, 2003, 1:07am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/22 "2003-07-12T01:07:14Z")

</div>

he wont listen hell just keep asking

---

<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:** [July 12, 2003, 1:12am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/23 "2003-07-12T01:12:19Z")

</div>

> \*Originally posted by claudio \*  
> \*\*That code has nothing to do with opening a window without any buttons  
> :-\ \*\*

So what does it do?

---

<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:** [July 12, 2003, 1:17am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/24 "2003-07-12T01:17:19Z")

</div>

The answer was given in the first reply to this thread. If it didn’t work, it wasn’t implemented correctly. Theres no need for fancy javascript, just an HTML Table with a width of 100% and a height of 100% that is aligned center and valigned middle.

---

<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:** [July 12, 2003, 1:18am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/25 "2003-07-12T01:18:30Z")

</div>

It makes the window cover all screen.

---

<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:** [July 12, 2003, 1:19am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/26 "2003-07-12T01:19:01Z")

</div>

I figured i didn’t implement it properly, which is why i posted the code 😉

I have got it to work without the html table way, and just need to know how for future reference.

---

<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:** [July 12, 2003, 1:47am UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/27 "2003-07-12T01:47:07Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*The answer was given in the first reply to this thread. If it didn’t work, it wasn’t implemented correctly. Theres no need for fancy javascript, just an HTML Table with a width of 100% and a height of 100% that is aligned center and valigned middle. \*\*

i had no idea, thank you

---

<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:** [July 12, 2003, 12:18pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/28 "2003-07-12T12:18:34Z")

</div>

All you needed to do was insert a table, with a width of however many pixels the .swf is and a height of 100%. then align=“middle”.

Just my 2c  
Marcellinus

---

<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:** [July 12, 2003, 12:21pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/29 "2003-07-12T12:21:17Z")

</div>

make swf’s sizes 100%x100%  
in flash put AS

```auto

Stage.scaleMode = "noscale";
Stage.align = "C";

```

works just fine 😉

---

<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:** [July 12, 2003, 1:16pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/30 "2003-07-12T13:16:24Z")

</div>

screw all the srcipts (i’m just saying that cause im crap in HTML)

Alucard\_X, the easiest thing to do is to center it on x with the center button, then, go to the line above the thing and hit the enter button till you’re happy.

---

<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:** [July 12, 2003, 3:01pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/31 "2003-07-12T15:01:57Z")

</div>

i think hes confusing aligning the image centered on a page and opening a centered popup window, when posting please be more specific so we can help you out faster

And DW is the best you just have to learn how to use tables they are your friends in any html page :beam:

---

<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:** [July 12, 2003, 4:49pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/32 "2003-07-12T16:49:43Z")

</div>

> \*Originally posted by grimdeath \*  
> \*\*i think hes confusing aligning the image centered on a page and opening a centered popup window, when posting please be more specific so we can help you out faster

And DW is the best you just have to learn how to use tables they are your friends in any html page :beam: \*\*

Thanks 🙂

What i meant to say was, when adding a flash file into my dreamweaver project, how do i align it completely to the center of the page?

That is what i meant 😛

---

<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:** [July 12, 2003, 11:05pm UTC](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363/33 "2003-07-12T23:05:22Z")

</div>

press ctrl+alt+t this inserts a table, now click inside the table and go to the properties tab and change the horizontal to center, now press ctrl+alt+f and insert your flash file it will be centered let us know if we solved your problem :beam:

[Previous page](https://forum.kirupa.com/t/how-to-exactly-center-swf-in-dreamweaver/25363.md?page=1)
