Adobe provides a free script called AC_FL_RunActiveContent.js that solves many of the problems of embedding swf players into web pages. It detects the browser and version and automagically spits out the proper html to embed your content properly.
An example of using it is:
Code:
<div id="video4zenWrapper">
<script type="text/javascript">
AC_FL_RunContent(
'class','video4zen',
'width','400',
'height','226',
'allowFullScreen','false',
'data','/ZCplayer/zencartvideoplayer.swf',
'type','application/x-shockwave-flash',
'movie','/ZCplayer/zencartvideoplayer',
'wmode','transparent',
'flashvars','flv=<?php echo "/" . $movie; ?>&configxml=/ZCplayer/config.xml' ); //end AC code
</script>
</div> <!-- end of video4zenWrapper -->
Bookmarks