corner image corner image
View Single Post
corner image corner image
  #15 (permalink)  
Old 21-07-2008, 10:26
Cracking Media's Avatar
Cracking Media Cracking Media is offline
A1 is my Second Home!
 
Join Date: Apr 2008
Location: Bournemouth
Posts: 477
Thanks: 81
Thanked 131 Times in 126 Posts
Sarah,

I have been looking at this some more and think this is what you need to do.

1. Publish your Flash page and make sure you output an HTML page.
2. This will contain a few comments at the top, then some Javascript, then the actual swf object. It will look something like the following:
<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>Untitled-1</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--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=9,0,0,0',
'width', '550',
'height', '400',
'src', 'Untitled-1',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Untitled-1',
'bgcolor', '#ffffff',
'name', 'Untitled-1',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Untitled-1',
'salign', ''
&nbsp; //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Untitled-1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="Untitled-1.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>

3. Delete everything in bold and leave mainly just the swf object.
4. In the line above, before the opening <object> tag, add a <center> tag.
5. In the line below the closing </object> tag, add a closing </center> tag.
6. Save your HTML file (index.html) and load it into your browser.

It should now be centred. Try it and see if that works.

Peter
Reply With Quote
corner image corner image