Center .SWF in Browser Window:
- Started
- Last post
- 15 Responses
- ronnypudding
How can I do it?
I've posted this on several flash geek forums, and I'm getting a million different answers.
Can you guys help me?
Please keep in mind that I'm a dumbfuck.
But thanks to anyone that can help.
- ********0
just take a look at any site that is centered an use the same setup HTML wise and then embed your .swf. What do you mean?
- ********0
http://www.machnewmedia.com/loop… just use this which I made long ago and never used.
- unformatted0
Stage.scaleMode = "noScale";
Stage.showMenu = "false";in flash.
then make the size 100% in html
- ********0
there you go that's nice too!
- mbr0
You can swipe the code from my site.
It's old fashioned, though ;-)
Just a table set to center, inside of another table set to center - then stick the swf inside of that.
Table > table > swf and it should work in the older browsers.
- shellie0
what mbr said..
you dont need 2 tables tho. just one table thats 99% high and 99% wide (99% because 100 makes scrollbars on some browsers) and make the horizonal and vertical alignment center, middle. this way your swf will be both centered horizonally and vertically perfectly on every browser nomatter what size it is. got it? good.
- unformatted0
or if you do it my way. you don't need tables.
- shellie0
what about if they have a nice tiled bg in the back eh? what then??
- unfittoprint0
do the unformated way, that's new school.
- unformatted0
tile it in flash.
- mrdobolina0
Im with Shellie.
- ********0
shellie's back
- subfactor0
ive got some mx components that align a swf file to center, right, btm right, etc..
- ronnypudding0
THANKS EVERYBODY
- jox0
"THANKS EVRE-BODEEE!"
reminds me of Dr Nick in the Simpsons.. hahah