How can i add .SWF file In HTML?

  • shreya shah
  • Born
  • Born
  • No Avatar
  • Joined: Jul 31, 2009
  • Posts: 3
  • Status: Offline

Post August 4th, 2009, 5:00 am

i want to add .SWF file using HTML..What is the code for this ?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 4th, 2009, 5:00 am

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post August 4th, 2009, 9:07 am

What have you tried so far?
The Beer Monocle. Classy.
  • Madzmar
  • Newbie
  • Newbie
  • User avatar
  • Joined: Aug 01, 2009
  • Posts: 8
  • Status: Offline

Post August 4th, 2009, 8:03 pm

assuming the .swf file and your index.html or any html file that should contain the .swf file is located in the same directory you can add this code to after <body> tag
Code: [ Select ]
 
<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="350" height="100">
                    <param name="movie" value="yourflash.swf" />
                    <param name="quality" value="high" />
                    <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
                </object>
  1.  
  2. <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="350" height="100">
  3.                     <param name="movie" value="yourflash.swf" />
  4.                     <param name="quality" value="high" />
  5.                     <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
  6.                 </object>

 
 
with this you can add your .swf file to the script your running... assuming that your swf file is name as yourflash.swf then having the same directory as the script running it the the flash should run or can be added immediately...
 
you can also place the swf file inside a <div> tag
 
example:
Code: [ Select ]
<div id="flashContainer">
 
<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="350" height="100">
<param name="movie" value="yourflash.swf" />
<param name="quality" value="high" />
<embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
                </object>
 
</div>
 
  1. <div id="flashContainer">
  2.  
  3. <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="350" height="100">
  4. <param name="movie" value="yourflash.swf" />
  5. <param name="quality" value="high" />
  6. <embed src="yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="100"></embed>
  7.                 </object>
  8.  
  9. </div>
  10.  

Hope i somehow answered your question.... goodluck in your webdeveloping
Moderator Remark: Use [code][/code] to encapsulate code snippets
  • charlesying
  • Born
  • Born
  • No Avatar
  • Joined: Apr 21, 2010
  • Posts: 2
  • Status: Offline

Post April 21st, 2010, 6:01 am

in Macraomedia Dreamweaver you can do it easily by simply inserting the file

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 118 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.