|
-
swfobject help
OK, you guys have been very helpful so far!
Here is myattempt at using swfobject and alternate content:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>This is a test</title>
<meta http-equiv="flashMovie-Type" flashMovie="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
html, body{
margin:0;
padding:0;
height:100%;
}
#flashContainer{
width:100%;
height:100%;
}
</style>
<script type="text/javascript" src="SWFObject.js"></script>
<script type="text/javascript">
//<![CDATA[
swfobject.embedSWF("test.swf", "flashMovie", "100%", "100%", "9.0.0","expressInstall.swf");
setFlashSize(940,625); //set the minimum width and height of your Flash movie
//]]>
</script>
</head>
<body>
<div id="flashContainer">
<div id="flashMovie">
<h1>Test headline</h1>
<p>test alt. copy goes here</p>
</div>
</div>
</body>
</html>
I seem to be getting closer to this, but I can't get it to NOT resize the swf!
Any help with this will be appreciated!
-
Code:
setFlashSize(940,625); //set the minimum width and height of your Flash
If I am understanding the problem, that line is what is causing it.
-
Thanks, but that didn't work... it now resizes smaller AND larger, depending on the window. This must be easy, but I just don't know enough about html to solve this.
I've been searching for a solution, but haven't found the answer yet... anyone?
-
OK...I think I just figured it out through trial and error. I swapped the heighth and width % with the actual size.
-
OH! I misunderstood what you were talking about when you said resize. Well, glad you figured it out.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|