Hi
I’ve problems with placing my swf file at the right position of my site.
I want it to be on the horizontal center and bottom of the page.
The problem is that the according options (Flash alignment, HTML alignment??) don’t seem to work.
What else could I do to get the expected result?
[quote=wuerschi;2356390]Hi
I’ve problems with placing my swf file at the right position of my site.
I want it to be on the horizontal center and bottom of the page.
The problem is that the according options (Flash alignment, HTML alignment??) don’t seem to work.
What else could I do to get the expected result?[/quote]
I would use SWF Object for the HTML part scaled to 100% width and height. And then set the flash Stage so that the scaleMode is noScale and then the Stage is aligned to the bottom.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Tittle Here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
html, body, #content { height:100%; }
body { margin:0; padding:0; overflow:hidden; }
#altContent { /* style alt content */ }
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "8.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="content">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="teaser.swf" />
<param name="scaleMode" value="showAll" />
<param name-"quality" value="best" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="teaser.swf" width="100%" height="100%">
<!--<![endif]-->
<div id="altContent">
<h1>You need to upgrade your Flash player.</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>
Here’s an HTML example if you are using the latest SWFObject.