Reading the .SWF

macjones

Making Design taste good
How do you use the .swf file instead of the .html?
The page needs to stretch as it is resized but I can only get it to read the .html. Is there a specific code to make it read the .swf instead?
 
What exactly do you want to do? Embed a .SWF file into an HTML web page? Link directly to a .SWF file? Please elaborate... I don't understand "How do you use the .swf file instead of the .html"...
 
sorry for the vague question. I think I am trying to link directly to the .swf file so that the index page is the .swf instead of the html.
 
Yes, you do need certain code to post a .swf (flash) file. Here's an example of the code required to post. Bear in mind this code is generated by Dreamweaver so it might not be the cleanest, best code out there; but it will work (alter size numbers to fit your flash file):

<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="330">
<param name="movie" value="file:///filedirectoryhere/yourflashfile.swf" />
<param name="quality" value="high" />
<embed src="file:///filedirectoryhere/yourflashfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="330"></embed></object>
 
Yep -- like Natobasso said, you gotta embed the .SWF in an HTML file -- unless you have control over the server that it's being hosted on, in which case you can simply add .swf as one of the default index page extensions to look for in the Apache config file.
 
Back
Top