Groups | Blog | Home
all groups > flash (macromedia) > july 2004 >

flash (macromedia) : Still need help with sizing and centering



Kree8R
7/17/2004 6:23:46 PM
in your HTML code where your Flash movie is defined
via the <object> and <embed> tags,
you have two instances of text that are thus:

ALIGN=""

change them both to:

align="middle"

laurieannstevens
7/17/2004 10:36:43 PM
Hey all,

A while ago, I asked for advice on how to publish my all-Flash site so that it
would resize itself to take up 100 percent of the screen, regardless of a
person's screen resolution. I was told to use the code, shown below, on my HTML
page. Well, the code worked (or so it seemed, as we tested the site on various
browsers and at various resolutions). But, the next day, the client checked the
site (using MSIE - although we'd used it the night before) and the site came up
the size of a postage stamp at 800 by 600 resolution, only. I have no idea why
this happened but, it's back to the drawing board.

I no longer care if the site resizes itself for 100 percent of the screen at
various resolutions. I've found that's just too much work and effort for too
little return (or so it seems - if someone can tell me different, please do).
What I'd like to do now is center my site (and I have no idea why this isn't
working since I have my publish settings set at "Flash Alignment = center,
center"). Please take a look at www.songwritersguild.com to see that my page is
left justified. Can someone tell me the layout and/or publish settings I need
to use for center justification? I'm desperate as I have these snarky little
part-time employees at the Guild who are picking at every little thing they
think is wrong with the site. So thanks, in advance, for your help!!

Laurie Stevens


Laurie
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>index</TITLE>
</HEAD>
<BODY bgcolor="#000033">
<script language="JavaScript">
window.onload = maxWindow;

function maxWindow()
{
window.moveTo(0,0);


if (document.all)
{
top.window.resizeTo(screen.availWidth,screen.availHeight);
}

else if (document.layers||document.getElementById)
{
if

(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.ava
ilWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}

</script>


</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="index.swf">
<param name=quality value=high>
<embed src="index.swf" quality=high

pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%"
height="100%"></embed>
</object>
</body>
</html>

laurieannstevens
7/17/2004 11:30:16 PM
All,

Let me add that, when I do preview by exporting a Flash movie, the movie shows
up as centered. That's why I'm so confused as to why it's coming up as left
justified when published. Anyone who can help, please let me know.

Laurie
laurieannstevens
7/18/2004 3:58:09 AM
Well, I placed the word 'middle' into the align tags but when I uploaded the
HTML, the page still came up left justified. So, because I earlier looked at
Disney's site and saw that it used Flash and was centered, I looked at their
code. They have 'center' in the align tags. So, I changed the 'middle' to
'center'. But, still no luck. I uploaded the page with the changes and still
got a left justification.

Does anyone have any suggestions? Below is the code for my page as it is now.

Laurie

<TITLE>index</TITLE>
</HEAD>
<BODY bgcolor="#000033">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,0,0"
WIDTH="800" HEIGHT="600" id="index" ALIGN="center">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=loop VALUE=false> <PARAM
NAME=menu VALUE=false> <PARAM NAME=quality VALUE=autohigh> <PARAM NAME=scale
VALUE=noborder> <PARAM NAME=bgcolor VALUE=#000033> <EMBED src="index.swf"
loop=false menu=false quality=autohigh scale=noborder bgcolor=#000033
WIDTH="800" HEIGHT="600" NAME="index" ALIGN="center"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>
bzy
7/18/2004 4:12:00 AM
there's many ways you could do it. I could give you a perfect way using CSS but
I wont confuse you....

Basically if you stick your flash file in a table and use align="center" you
should be fine then just put some padding at the top if you want to bring it
down.

Like this:


just adjust cellpadding if you want.

<head>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<title>index<title>
</head>
<body>
<table width="100%" cellpadding=" 50" cellspacing="0" border="0"
align="center">
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="index.swf">
<param name=quality value=high>
<embed src="index.swf" quality=high

pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%"
height="100%"></embed>
</object>
</td>
</tr>
</table
</body>
</html>
AddThis Social Bookmark Button