all groups > macromedia flash sitedesign > may 2007 >
You're in the

macromedia flash sitedesign

group:

centering a flash website


centering a flash website jonnyc1st
5/30/2007 6:46:24 PM
macromedia flash sitedesign: how do I ensure that my flash website always appears in the centre of a browser?
is it possible to make this happen in flash or do I need to edit the html?
thanks
Re: centering a flash website dzedward
5/30/2007 7:28:04 PM
Re: centering a flash website jonnyc1st
5/31/2007 5:36:14 PM
Re: centering a flash website Anonymous Chief
6/1/2007 10:59:37 PM
Here is what I do and it works fine.

In a new html file, create a table with only one cell. Make the length and
width 100% and make the border size 0

Set the cell properties of that table to center then insert the flash movie
there, the movie will be centered.

[quoted text, click to view]

Re: centering a flash website Franz Marksteiner
6/2/2007 12:00:00 AM
[quoted text, click to view]

You obviously did not reply in the original thread.
With no information noone can help...

--
Freundliche Grüße,
Franz Marksteiner
Re: centering a flash website Rock2007_laptop
6/2/2007 12:00:00 AM

[quoted text, click to view]

Have you tried using CSS ?
Getting it perfectly vertical centered is tricky but you can centre it with
following style

<style type="text/css">
..centreMe {
text-align: left;
width:500px; //set to whatever the width of your movie
height: 500px; //as above
background: white;
padding: 0px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
</style>

and in your HTML

<body>
<div class="centreMe">
**embedded flash here**
</div>
</body>

Re: centering a flash website wstoner76
6/12/2007 8:11:17 PM
You will need to edit the html file created when you publish it. Add a table tag with an align=center attribute.

Re: centering a flash website odeziner
6/14/2007 5:46:49 PM
Hello, I am new to Flash as well and I am currently having the same issue.
I've tried the alignment settings in the publishing window, and I also tried
the code:
<table align="center" ><tr><td> <flash object goes here></td></tr></table>

Neither have worked. Does anyone know what else I could do to ensure my
website appears centered in the browser?
Re: centering a flash website Rob Dillon
6/14/2007 6:35:20 PM
The simplest solution, if you expect that your users are using recent
browsers is to just write a div tag.

------------
<body bgcolor="#ffffff">

<div align="center">

<object classid="clsid:d ...


.../go/getflashplayer" />
</object>

</div>

</body>
</html>
--------------

If you want to float your Flash movie on the HTML doc, then you'll need
to write a little more. You can find many examples for floating a div at
Re: centering a flash website Franz Marksteiner
6/15/2007 12:00:00 AM
[quoted text, click to view]

<style type="text/css">
<!--
#myContainer {
width:width of your flashpx;
margin:auto;
}
-->
</style>
<div id="myContainer">
Flash goes here
</div>


--
Freundliche Grüße,
Franz Marksteiner
AddThis Social Bookmark Button