Centering .swf in browser:
- Started
- Last post
- 13 Responses
- ronnypudding
Hey:
I'm having problems centering my .swf in the browswer window.
Here's what I did:
In Flash:
Stage.scaleMode = "noScale";
Stage.showMenu = "false";then make the size 100% in HTML.
Only problem is, it doesn't center this for PCs...any suggestions?
Any help would be greatly appreciated.
R.
- ********0
Nested tables
OR
letterbox frameset
- ronnypudding0
Thanks for yr response.
I forgot to tell you - I'm a dumb pile of shit.
What is that stuff you mentioned.
Can it be done in Dreamweaver?R.
- stuff0
Make a table in Dreamweaver set the width and height to 100% then import swf and set the inner table properties to centre middle.
- stuff0
Roberts your fathers brother.
- canadian0
create a 1 cell table in dreamweaver at 100% x 100% then align vert and horiz center and drop the swf in it. save. done.
- canadian0
stuff you beat me to it.
- ********0
yup the nested tables is a table of 3 cells x 3 cells 100% wide and 100% high, then in the centre one you put a further table of 1x 1 cells and set it to "centre"
simple really but you need to think of it first ;)
Letterbox frameset you can download from the DW exchange on macromedia.com
- Blofeldt0
make a table 100% tall by 100% wide.
Plonk your movie in it.
Then align your movie centre by setting your cell horizontal setting to 'centre' and your cell height setting to 'middle.'The help section can help you out on cell alignment i'd have thought.
Ta daaaaa!
- ronnypudding0
OK thanks.
I'll try it.Does anyone know WHY there's a difference when it's viewed on a PC? Because that sucks.
Thanks again.
R.
- stuff0
Or you could do it Like Tom Cruise does in Minority Report and move it with your hand....
- ********0
yeah that would be cool
- Blofeldt0
get two bits of 2 x 4, and a packet of self tapering screws. *Drill four holes in each plank.
Make your flash movie into a flick book made of papaus, lay it in your frame. Screw the self tapering screws into the planks avoiding the holes you made because they're self tapering.Then fed ex the whole lot to anyone wanting to see you movie.
Doesn't work in Netscape 4.7 or Netscape 6.1
- stuff0
hahaha