Aug
03
Filed Under (Design, Tips and Tricks) by Andy Diericks on 25-04-2007

One question of my customer today was: Can I show a Flash file on a page ?

He provides me an HTML and the SWF files.

I’ve found two easy solutions:

  • The first, for somebody who don’t know HTML and has receive an HTML file and the flash animation (from a designer or somebody like that), is to upload both files in a library and display the HTML file in a “Page Viewer” webpart. It’s easy and after some clicks you have done it. It can really give a nice look and feel to your site, for internal or external communications for example.
  • The second method and the more obvious is to upload the “.swf” file in a library and add a “Content Editor” webpart on the page. After that edit in source mode and fill with a piece of html, I provided one below but you need to customize it a bit :

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash
/swflash.cab#version=6,0,29,0″ width=”800” height=”600“>
<param name=”movie” value=”your animation.swf“>
<param name=”quality” value=”high“>
<embed src=”your animation .swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”800” height=”600“></embed></object>

For me the best solution is the second, it’s faster.

Of course it will be another story if you want it on the master page, you will need to play with the “.master” page.  ;-)



Post a comment
Name: 
Email: 
URL: 
Comments: