Ok so I have a flash video player. I have the following code:
listenerObject = new Object();
listenerObject.complete = function (objEvt)
{
trace ("end of movie : ");
hold_mc._visible = true;
getURL(startvideo+".html");
};
player_mc.addEventListener("complete",listenerObject);
player_mc.load("flv/" + startvideo + ".flv");
trace ("new movie found" + startvideo);
player_mc.stop();
trace ("new movie stopped" + startvideo);
hold_mc._visible = false;
player_mc._visible = true;
player_mc.play();
trace ("new movie playing" + startvideo);
what this does is it looks for startvideo(variable).flv. for example, when the swf is called such as vidplayer.swf?startvideo=name_of_video, it loads name_of_video.flv into the swf video player. What I am trying to do is somehow through PHP, have it so that a page containing this video player loads the respective flv when the page is called (video.php?startvideo=name_of_video). anybody knows? This is the flash object code that I am using
<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject("vidplayer.swf?startvideo=", "player_flash", "320", "307", "8", "#000000");
fo.addParam("menu", "false");
fo.addParam("quality", "best");
fo.write("player_flash");
// ]]>
</script>