How To Add Swf File In Html
Flash HTML Code
Before we get started into the basics and bolts of Macromedia Flash permit'due south figure out exactly how yous insert Flash files (.swf file extension) into your existing HTML files. To follow along with this tutorial you are going to need a flash file, a web page, and some fourth dimension on your hands. If you retrieve you've got all those items assembled and so nosotros tin can brainstorm.
Inserting Flash Into HTML
To insert wink into your HTML files y'all must employ the HTML tag object, which is used to place multimedia items similar music, movies, and at present Flash files onto spider web pages. We volition assume that the name of your flash file is "instance.swf" for this lesson, merely you should rename it to the actual proper name of your flash file.
Embed Wink: <object> Tag
The object tag contains many attributes to modify the way the multimedia is displayed and to describe the blazon of media to exist displayed.
Below is the cookie cutter HTML code you tin can employ to insert a wink file into whatever HTML folio, bold that both this HTML file and Flash file are in the same directory.
Note: The only pieces you demand to change are value and src, which specifies the name and location of your Flash file and height and width, which specify the dimensions of your Flash file.
HTML Code:
<html>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab#version=six,0,twoscore,0"
width="468" height="60"
id="mymoviename">
<param name="motion picture"
value="instance.swf" />
<param proper name="quality" value="loftier" />
<param proper name="bgcolor" value="#ffffff" />
<embed src="case.swf" quality="high" bgcolor="#ffffff"
width="468" meridian="60"
proper name="mymoviename" align="" blazon="application/ten-shockwave-wink"
pluginspage="http://www.macromedia.com/become/getflashplayer"></embed>
</object>
</body>
</html>
Display:
Macromedia has written a description of this circuitous bit of HTML Code, and then check information technology out if you lot like to get into the details.
Macromedia Flash has a feature to automatically generate the necessary HTML Lawmaking. To generate the HTML code and Wink file for your project become to the Flash menu File < Publish.
If the flash file is in a different location you could instead type the complete URL of the flash file as nosotros have done in this 2nd case:
HTML Code:
<html>
<trunk>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab#version=6,0,40,0"
width="468" meridian="60"
id="mymoviename">
<param name="moving-picture show"
value="http://world wide web.tizag.com/pics/case.swf" />
<param name="quality" value="loftier" />
<param proper noun="bgcolor" value="#ffffff" />
<embed src="http://www.tizag.com/pics/instance.swf" quality="high" bgcolor="#ffffff"
width="468" acme="60"
name="mymoviename" align="" type="application/x-shockwave-flash"
pluginspage="http://world wide web.macromedia.com/go/getflashplayer"></embed>
</object>
</torso>
</html>
Display:
Found Something Wrong in this Lesson?
Report a Bug or Annotate on This Lesson - Your input is what keeps Tizag improving with time!
How To Add Swf File In Html,
Source: http://www.tizag.com/flashTutorial/flashhtmlcode.php
Posted by: callahanutmacksmay.blogspot.com
0 Response to "How To Add Swf File In Html"
Post a Comment