# How can I vertically align when inserting swf via swfIN?

**URL:** https://forum.kirupa.com/t/how-can-i-vertically-align-when-inserting-swf-via-swfin/261124
**Category:** Uncategorized
**Created:** [May 23, 2008, 11:52am UTC](https://forum.kirupa.com/t/how-can-i-vertically-align-when-inserting-swf-via-swfin/261124 "2008-05-23T11:52:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wonderstew](https://avatars.discourse-cdn.com/v4/letter/w/6a8cbe/32.png) [@wonderstew](https://forum.kirupa.com/u/wonderstew)
#### Post date: [May 23, 2008, 11:52am UTC](https://forum.kirupa.com/t/how-can-i-vertically-align-when-inserting-swf-via-swfin/261124/1 "2008-05-23T11:52:31Z")

</div>

Hey all.

First let me say that I’m a designer, an animator and an artist… not a coder. I have only an intermediate knowledge of xhtml/css, very limited actionscript knowledge and only a simple working understanding of javascript… so be very specific with your help, if you don’t mind. Thanks in advance.

I’m working on my first foray into fullscreen flash design.

[Here’s what I’m working on](http://mlcadvertising.com/hogs/)

I used the [swfIN](http://swfin.nectere.ca/) toolkit to insert the swf with javascript. It allows you to extend the swf 100% of the browser window and it forces scrollbars wherever you need them… that’s all I really know about it. I was pretty amazed when it worked for me on the first try.

As those of you with at least a 1280x1024 resolution can see, the swf centers vertically in the browser and I need it to align vertically. Is there an addParam that will do this for me?

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![bpalermo](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bpalermo](https://forum.kirupa.com/u/bpalermo)
#### Post date: [May 23, 2008, 9:55pm UTC](https://forum.kirupa.com/t/how-can-i-vertically-align-when-inserting-swf-via-swfin/261124/2 "2008-05-23T21:55:32Z")

</div>

It’s not vertically centered here… And, yes, my resolution is 1280x1024…

---

<div class="post-metadata">

### Author: ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)
#### Post date: [May 23, 2008, 10:13pm UTC](https://forum.kirupa.com/t/how-can-i-vertically-align-when-inserting-swf-via-swfin/261124/3 "2008-05-23T22:13:27Z")

</div>

Nor here…it’s also not scaling to 100% of the browser size. Try the following code in your FLA/SWF:  
Stage.align = “T”;  
You can also experiment with the Stage.scaleMode properties. If you do a search in Experiments forum, there’s also a couple of good examples of how to get a proper fullscreen effect.

When it comes to parameters, I’m not sure about SWFIn as I prefer to use SWFObject. But you can usually use any of the following parameters:  
[http://kb.adobe.com/selfservice/viewContent.do?externalId=tn\_12701&sliceId=2](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701&sliceId=2)
