How to Embed SWFs to Play on Click Paramaters

After creating a Flash video using Adobe Flash software, you must export the Flash video to a .swf file before the video can be uploaded and played online. After you have exported the .swf file and uploaded it to your server, you can embed the file so that it plays in a media player. If you do not include parameters with the embed code, there will be no controls associated with the video. However, if you want to be able to do things like loop the video, pause it or click it to begin playing, you need to include parameters in the code.

Instructions

    • 1

      Log in to your Web server.

    • 2

      Locate the HTML page in which you want to embed the .swf file and double-click it to open the HTML page.

    • 3

      Insert this code anywhere you want between the <body> and </body> tags:

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

      codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0"

      width="320" height="400" >

      <param name="movie" value="mymovie.swf">

      <param name="quality" value="high">

      <param name="play" value="false">

      <param name="LOOP" value="false">

      <embed src="http://www.mysite.com/mymovie.swf" width="320" height="400" play="false" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"

      type="application/x-shockwave-flash">

      </embed>

      </object>

    • 4

      Make the necessary changes to adapt the code to your video. This specifically includes changing the "<param name="movie" value="mymovie.swf">" line so that "mymovie.swf" instead includes the actual file name of your .swf.

      Similarly, replace the section that reads "http://www.mysite.com/mymovie.swf" with the actual URL or file path of your .swf.

    • 5

      Publish the page. The embedded .swf video will now only play when it is clicked.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured