all groups > flash (macromedia) > august 2007 >
You're in the

flash (macromedia)

group:

Can't Center



Can't Center Fifty81
8/5/2007 2:57:38 PM
flash (macromedia): I'll start off and say I am a total NOOB too flash, but I'm learning. I have
just switched over to Flash CS3 and CAN'T for the life of me get the website
centered within the browser. What am I doing wrong?

Here is the index.html file...

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>The Little Pearl</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body background="Background.jpg">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase',
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0
,0,0',
'width', '860',
'height', '1000',
'src', 'Pirrko',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Pirrko',
'bgcolor', '#d0d0c4',
'name', 'Pirrko',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Pirrko',
'salign', ''
); //end AC code
}
</script>
<table width="100%">
<tr>
<td align="center">
<noscript>
<script type="text/javascript">
AC_FL_RunContent(
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,0,0','width','860','height','1000','id','Pirrko','align','middle','s
rc','Pirrko','quality','high','bgcolor','#d0d0c4','name','Pirrko','allowscriptac
cess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedi
a.com/go/getflashplayer','movie','Pirrko' ); //end AC code
</script><noscript><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=7,0,0,0" width="860" height="1000" id="Pirrko" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Pirrko.swf" /><param name="quality" value="high"
/><param name="bgcolor" value="#d0d0c4" /> <embed src="Pirrko.swf"
quality="high" bgcolor="#d0d0c4" width="860" height="1000" name="Pirrko"
align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</td>
</tr>
</table>
</body>
</html>
Re: Can't Center Fifty81
8/7/2007 10:38:12 PM
Re: Can't Center dzedward
8/7/2007 10:45:50 PM
place your object code inside this

<div style="position: absolute; top: 50%;display: table-cell; vertical-align: middle; text-align: center; width: 100%; padding: 0;">


Re: Can't Center reformedman
8/8/2007 1:43:53 AM
AddThis Social Bookmark Button