PDA

View Full Version : load FLVPlayBack.source at runtime


jeaux
10-01-2008, 06:48 AM
I want to change the video that's played at runtime. So from one page that has a list of videos and the href would be something like videoplayer.php?videoID=00001

In the videoplayer.php file, php will access the mySQL DB and return the path to the videofile. i.e. videofolder/whatever.flv

Now how do I pass this data from the html to my flashvideoplayer.swf that's embedded on this same page.

I've tried using DW4 to do it and then just altering the code that it generates to play a different flv, but I have a custom skin that I created and when I alter the skin name it just pastes the skin over the flv with no functionality. And DW4 seems to have some problem connecting to FMS3. Anyway I created a basic movie with a FLVPlayback component that accepts myskin.swf and will play from content path/source rtmp://localhost/vod/AdobeBand_640.flv

So how do I change the source at runtime. I've tried so many things it probably sounds like I'm talking in circles. Anyway I'm very confused and need some serious direction.

I'm a noob so any incite is helpful,
Joe

Suppose I should have included it's AS3

jeaux
10-03-2008, 05:19 AM
Here's a link:

http://www.dynamicdrive.com/forums/showthread.php?p=164243#post164243

mamusque
11-15-2008, 12:10 PM
Hi, I'm new here and in AS too...
I've seen you had my same problem, I've seen, on dynamicdrive, that you've found a solution, but I cannot understand how you've achieve it.
So... can you explain, how to pass this kind of parameter to your swf?
I think I need something more basically technical! :-):confused:

Tnx a lot for your answer by now !