seria mas o menos asi
Código PHP:
<script language="javascript">
function get_random()
{
var ranNum=Math.floor(Math.random()*50);
return ranNum;
}
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '802',
'height', '800',
'src', 'index?random='+get_random()+'',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'bottom',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index',
'bgcolor', '#000000',
'name', 'index',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index?random='+get_random()+'',
'salign', ''
); //end AC code
}
</script>