Hello,
I have a simple question (I think)
I have been reading the swFFit doc’s and looking at the examples and while it
seems that things should be pretty straight forward I can seem to get
swFFit to work for me…
**** What I am Attempting to do ****
I have a Flash Swf at 100% scale (stage size is 1024x768) this size is
too large for many laptop computers
As such I was hoping to use SwFFit to resize for the smaller sized monitors.
I have tried many different settings but I KNOW I am doing something stupid. and overlooking something.
I am using this in conjunction with SwfObject 2.1
here is the code (that does not work) of my index.html file now.
Thanks in advance for any assistance, I am excited about the possibilities…
<!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>Handmade Birds</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script src="swfaddress.js" type="text/javascript" charset="utf-8"></
script>
<script type="text/javascript" src="swffit.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {
bgcolor : "#FFFFFF",
allowFullScreen : "true",
scale :"noscale",
allowScriptAccess : "always",
swLiveConnect : "true"
};
var attributes = {id:"jBoehm"};
swfobject.embedSWF("Boehm_v1c.swf", "content", "100%", "100%",
"9.0.0", "expressInstall.swf", flashvars, params, attributes);
swffit.fit("my_flash");
swffit.configure({minWid: 800, maxHei: 450, vCenter: false});
</script>
<style type="text/css">
html, body, div {
height: 100%;
overflow: hidden;
}
body {
background: #FFFFFF;
font: 86% Arial, sans-serif;
margin: 0;
}
#main {
height: 100%;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<div id="content">
<h1>Alternative content</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>
</body>
</html>