in order to embed a flash (swf) animation in a HTML page i use AC_RunActiveContent.js
you can download it from here (it’s a very old file that i’ve been using for years – not sure where i got it from and where to get a new version from 😀 – didn’t need one so far). just right-click on the link and choose save link as (chrome)
upload it to your server
in the head section include this line:
1 |
<script src="/path_to/AC_RunActiveContent.js" type="text/javascript"></script> |
then include this piece of code where you want to show the animation
1 2 3 |
<script type="text/javascript" > AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','300','height','250','align','middle','src','/path_to/filename','quality','high','bgcolor','#ffffff','name','/path_to/filename','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/path_to/filename' ); </script> |
- filename is name of the animation file without the .swf extension; you need to change this in 3 places
- path_to is the path to the file relative to public_html
- the width and the height are the numbers right after ‘width’ and ‘height’