PDA

View Full Version : fitting swf to fill page


easychair kenny
05-10-2006, 11:29 PM
I have a swf that i want to fit to the entire index page. I've looked on the forum to see if someone else posted it, and i hope i haven't missed it as to not annoy anybody :). Is there a way to make the browser fit it to 100%? I did what I thought needed to be done with the margins and scale, but it's not behaving properly-what am i missing? I'm new at this, and I appreciate any help.

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">@import url("founddead.css");
body {background-color: #000000;
height: 100%;
width: 100%;
margin: 0;}
</style>
</head>
<body bgcolor="#000000" text="#666666" link="#666666" vlink="#999999" alink="#CCCCCC" LEFTMARGIN="0" TOPMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" scroll= "yes">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="801" height="623" align="top">
<param name="movie" value="index.swf">
<param name="quality" value="high">
<param name="BGCOLOR" value="#000000">

<param name="height" value="100%">

<param name="width" value="100%">
<embed src="index.swf" width="801" height="623" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#000000"></embed>
</object>

</div>

domedia
05-11-2006, 01:33 PM
hiya kenny,
You're missing the basic structure of a webpage, even the <html> tag!

1. Make sure you have a valid document, let DW build it for you if you don't know html/css.
2. set 100% width only on the flash movie, or your movie will be distorted.
3. Set 100% width in both embed tags and object tag.

easychair kenny
05-11-2006, 04:13 PM
Thanks so much. I am trying to learn from the ground up as far as wriitng my own html, and as you can see, i dont know what im doin. Thanks for the tip! It worked and it looks exactly the way i want. have a good day :D