# A little PHP & Flash help!

**URL:** <https://forum.kirupa.com/t/a-little-php-flash-help/211851>\
**Category:** Uncategorized\
**Created:** [January 5, 2007, 7:47pm UTC](https://forum.kirupa.com/t/a-little-php-flash-help/211851 "2007-01-05T19:47:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![datballa](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@datballa](https://forum.kirupa.com/u/datballa)\
**Post date:** [January 5, 2007, 7:47pm UTC](https://forum.kirupa.com/t/a-little-php-flash-help/211851/1 "2007-01-05T19:47:23Z")

</div>

Ok so I have a flash video player. I have the following code:

```auto

     [LEFT]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);[/LEFT]
 

```

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

```auto

     [LEFT]<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>
[/LEFT]

```

[LEFT]  
[/LEFT]
