How to Embed Flash File in HTML

To insert flash into your HTML files you must use the HTML tag object, which is used to place multimedia items like music, movies, and now Flash files onto web pages. We will assume that the name of your flash file is “Filename.swf” , but you should rename it to the actual name of your flash file.

Steps:-

1.) Choose File –> Open.Open a Flash movie you have already created –> Export Movie –> .SWF File(Executable File).

2.) Name the file “filename.swf”. Then choose the location where the file is to be stored (in your Web folder).
Open an HTML page where you want to insert your Flash movie. Insert following code:

<object width=”600″ height=”400″>
<param name=”movie” value=”filename.swf”>
<embed src=”somefilename.swf” width=”600″ height=”400″>
</embed>
</object>
3.) Save and Run your Webpage.
Example :


This is the minimum code you need to embed a Flash movie in the browser.

Note: In the above code there is both an <embed> tag and an <object> tag. This is because the <object> tag is recognized by Internet Explorer, and Netscape recognize the <embed> tag and ignores the <object> tag.

Share

About the Author

Akash Padhiyar

Visit Website

One Comment

Trackbacks for this post

  1. […] Read more here:  Flash in HTML | How to Embed Flash File in HTML Page | Flash … […]

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.