I published a flash file with html from Flash MX but the movie plays in the top left corner of the browser window no matter what I specify in the publish settings. I pasted the html code below and can someone tell me exactly what to add where or change in order to have it play in the center vertically and horizontally.
That was so easy, thanks a lot for helping me out, wow. Though I would also like to center it horizontally as well and see how that looks. Again, appreciate all the help you guys can provide.
a quick way to centre vertically and horizontally could be to use a table, something like this,
Code:
<html>
<head>
<title>my movie</title>
</head>
<body>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
you object and embed tags in here
</td>
</tr>
</table>
</body>
</html>
however be careful with using a doctype on the page, since this relies on some non standard html (tables don't strictly have a height attribute) adding a doctype to the page may cause the browser to lose the vertical alignment of the movie. check this thread for more details.
Thanks. But the true answer to my dreams is how do I get my flash movie to open in a centered window that is 715x430 and has no margins or scollbars.
I've been trying for this all day but the only answers I can get is a script that tells me how to get one of those standard javascript buttons, and then when I click my movie will open in a centered window but the margins are still there pushing my movie down to the left.
What I really need is to put the correct script into an image slice that is in a fireworks doc.
So how do I select a image slice and place javascript code into it.
Thanks for any help, my head is spilting from all the searching.
The second post from Garion with the html code only worked on Mac computers and when I tried loading my site on a PC all I got was white with nothing else. I guess that's why I use Flash and not html. So I guess I am back to square one unless I try the tables code.
Thanks everyone but especially Hamah since that extension did exactly everything I wanted it to do and works great everywhere I think. No more problems on the PC so I am loving it and dont' have to mess with the code.