FastDomain Web Hosting Help

Flash files in web pages

Problem:

Example on how to embed a flash file in a webpage

Solution:

        <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 114,011 views bookmark tags: audio embed flash swf video (updated 940 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How do I stream Real Audio and Video Files? (updated 1965 days ago)
Knowledgebase Article 25,097 views tags: audio

Example HTML to embed a streaming video file in a browser using Windows Media Player, (updated 1610 days ago)
Knowledgebase Article 99,738 views tags: audio media stream streaming video windows

How to use a SWF file as your homepage without embedding it into an HTML page. (updated 2001 days ago)
Knowledgebase Article 66,385 views tags: flash page website

Related 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? (updated 941 days ago)
Knowledgebase Article 155,261 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 (updated 979 days ago)
Getting Started Article 149,688 views tags: file files filezilla manager setup

Which video format should I choose for use on my Website? (updated 1982 days ago)
Knowledgebase Article 102,730 views tags: stream streaming video

How do I embed or use .avi, Quicktime, or other file formats? (updated 1683 days ago)
Knowledgebase Article 51,636 views tags: media quicktime

Learn how to see how many files you have on your account using the File Count tool in the cPanel. (updated 536 days ago)
Video "How-to" Tutorial 96,285 views tags: cpanel file

This article explains error pages and how they can be customized. (updated 781 days ago)
Knowledgebase Article 106,650 views tags: customize pages

Does FastDomain supoprt FFMPEG support. (updated 704 days ago)
Knowledgebase Article 67,926 views tags: encoding ffmpeg flash flv flvtools module path perl support video

The Legacy File Manager will allow you to manage almost everything about your files, you can use it to upload, download, edit the code, change permissions and more! (updated 1522 days ago)
Video "How-to" Tutorial 89,512 views tags: cpanelutilities files upload