Interview Questions

Let the Flash Program do the Work

FLASH FAQ


(Continued from previous question...)

Let the Flash Program do the Work

The code above is the absolute minimum code to embed Flash movies in HTML pages. It is not recommended to use the minimum code. There should be a few more attributes added:

* classid is an attribute to the <object> tag. It tells Internet Explorer to load the ActiveX plug-in if it is not installed
* pluginspage is an attribute to the <embed> tag. It displays a link to the Shockwave download page if Netscape does not have it

The Flash program can add these attributes for you:
Step 1
Choose File > Publish. Flash will now create the <object>, <param>, and tags for you. It will also create the classid and pluginspage attributes.
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.
Step 3
Be sure that you have the "somefilename.swf" in your Web folder.
Step 4
Type in the address of the HTML file in your browser and look at your first Flash movie.

(Continued on next question...)

Other Interview Questions