The code above is the absolute minimum code to embed Flash
movies in the HTML pages. It is not recommended that to use the minimum
code. There should be few more attributes added:
- classid is an attribute to the <object> tag. It tells the
Internet Explorer to load the ActiveX plug-in if it is not
installed
- The pluginspage is an attribute to the <embed> tag. It
display a link to the Shockwave download page if Netscape
does not have it
The Flash program can add these attribute for you:
Step 1
Choose File > Publish. Flash will now create the <object>,
<param>, and <embed> tag for you. It will also create the
classid and pluginspage attribute.
Step 2
Open the HTML document that Flash created, view the HTML
source and copy the code into your HTML page where you want your
Flash movie to de displayed.
Step 3
Be sure that you have the "somefilename.swf" in your Web folder only.
Step 4
Type the address of the HTML file in your browser and
look at your first Flash movie.
|