This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

How To Embed Flash Files In A Web Page - Embed Code

How to embed a flash file in a webpage

            <embed src="somefilename.swf" width="550" height="400"> </embed>
            

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 <embed> 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.


Manually Creating the page.

After creating a Flash movie you choose File > Save As from the top menu to save your movie. Save the file as "somefilename.fla". To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the following steps:

Step 1
Choose File > Open. Open a Flash movie you have created.

Step 2
Choose File > Publish Movie.

Step 3
Name the file "somefilename.swf". Choose the location where the file is to be stored (in your Web folder). Click OK.

Step 4
Open the HTML page where you want to insert your Flash movie. Insert this code:

            <XMP>
            <table width="100%" class="ex" cellspacing="0" border="1"> 
               <tr> 
                  <td>
                    <object width="550" height="400">
                       <param name="movie" value="somefilename.swf">
                       <embed src="somefilename.swf" width="550" height="400">
                       </embed>
                    </object>
                  </td> 
               </tr>
            </table> 
            </XMP>

Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.

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

Step 5
Type in the address of the HTML file in your browser and look at your first Flash movie.

Knowledgebase Article 311,698 views bookmark tags: audio embed flash swf video


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

I am trying to edit my web page and I have no idea how to? I need to know how to go into the site and fix it. My webpage has a error in the first paragraph. I don't know how to fix it? Can you help?
Knowledgebase Article 409,417 views tags: edit html upload webpage

There are many ways that you can transfer files and folder to and from your hosting account. We highly recommend using an FTP (File Transfer Protocol) program to quickly upload and download files. We
Getting Started Article 324,030 views tags: file files filezilla manager setup

Embed Video in WordPress
Knowledgebase Article 90,142 views tags:

Related Help Content

This article will walk you through uploading files using the File Manager
Knowledgebase Article 377,806 views tags: cpanel file upload

This article will explain how to utilize GZip through the file manager.
Knowledgebase Article 229,242 views tags: archive compress compression decompress file gzip management zip

I need an EPP authorization code to transfer my domain to another registrar.
Knowledgebase Article 417,262 views tags: auth authorization code domain epp transfer

The hosts file is a plain text file that allows you to set IP Addresses for a domain on your computer. This may override authoritative DNS.
Knowledgebase Article 112,180 views tags: admin development dns file hosts ip test

Getting Started Wizard How to obtain a Transfer Authorization ( EPP ) Code If you want to transfer your .com, .net, .biz, .us, .org or .info domain, you will need to contact your current registrar an
Getting Started Article 691,331 views tags: authorization code domain domains epp top

This article will walk you through creating, removing, and editing files with the file manager.
Knowledgebase Article 286,050 views tags: cpanel filemanager

How do I Password Protect a single file on my website?
Knowledgebase Article 286,297 views tags: file passwd password prompt protect secure single

Short tutorial on how to set file and user Permissions in cPanel.
Knowledgebase Article 306,329 views tags: file permission permissions rights

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.