External PHP Driven FLV Player

Hey people,

I was wondering if anyone knows how i could go about using an externally loaded PHP file to trigger a movie clip to start which contains a blank Flash 8 FLV player.

I know how to load the PHP file into a Dynamic text box.

And i know that if i was to apply the following to a button it will change the content of the FLV player:

[AS]on (release) {
this._parent.player.contentPath = “movie.flv”;
}[/AS]

But obviously if i add that as a link in a PHP file… then… NOTHING! BAD PAGE!
So, is there any way that i could do this and make to work…
I would like it to be able to add more FLV links later on without constantly adding a new version of the .swf file so people have to keep reloading the file which is quite hefty.

Well, if PHP can’t be done, is there any other alternative without using XML… or will i have to resort to using a language i don’t have any clue about?

… like XML :x

Any help is greatly appreciated!
Cheers!

Michael.

I just built one of these - I have a very simple php script that reads files in a dir on the server, when flash loads, it calls the php and receives a list of flvs, and then creates a menu - then you can click on any item in the menu and it sets the content path of the FLVPlayback component and starts playing that movie. I need to see if I brought hte files home - I’ll post a condenced version if I have it

Swee-eet! :thumb2:

Cheers for that! Greatly appreciated!

You’ll have to edit the paths in The Class file to the locations of the files.php and the dir you’re keeping your flvs in - You’ll also have to modify the path to the flv folder in the files.php.

Flash uses loadVars to call the php, the php returns a list of all files within the flv directory - then flash generates a list of buttons. Click on any button, that sets the content path for the FLVPlayback component and plays the vid

OH MAN! YOUR THE BEST!!! :cowbell:

i can’t thank you enough! cheers and thanks again!