How to Add Flash Video to HTML

Flash Videos are an easy way for you to spice up any webpage and make websites more interactive. In order to view a Flash Video, a user must install the Adobe Flash Player plug-in, which is available for download from Adobe. This plug-in allows you to embed the video file into an HTML document, enabling users to watch your Flash media directly from their browser.

Things You'll Need

  • Adobe Flash Player plug-in
  • Flash Video file
  • Text editor
Show More

Instructions

    • 1

      Choose the page you want the Flash Video to play on. This will be the file we will insert specific code to; allowing the Flash Player plug-in to know where the video is and how to play it.

    • 2

      Open the file in your preferred text editor.

    • 3

      Determine the placement of your video and the size you want it to be played at. Go through your webpage and find where you want the video, and the approximate width and height, in pixels. If you are unsure about the size of it, leave the default size in. The size, placement and video file can be modified at any time.

    • 4

      Add this line of code to where you want the video to be played:

      <object width="120" height="150">
      <param name="movie" value="yourfile.swf">
      <embed src="yourfile.swf" width="120" height="150">
      </embed>
      </object>

      Replace the values for "width" and "height" with your desired width and height in pixels. Note that there are two instances for "width" and "height." Ensure these values are respectively identical. Also, replace the values for "value" and "src" with the file name of your Flash Video file.

    • 5

      Save the file. Leave the text editor open so you can make adjustments if they are needed.

    • 6

      Test the video. Open your website to view the page. Be sure to refresh if the page is already loaded. You should see your video embedded in the HTML. If you need to tweak the size of it, adjust the width and height values (Step 4).

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured