This content has been marked as final. Show 4 replies
You send the flv files path dynamically from the html variables.
Dont give the flv file path directly in setMedia(flvPath).
Just use a variable to send the path and that variable should a stage variable
so, that you can change them from the html...
I don't really understand this.. what sort of code do I use in my html ? Do I use the fs command ?
Also if I put a variable on the stage how will thiswork with the mediaplayer component?
any chance of an example ? Thanks
Suppose you are using the setMedia like this.
myMedia.setMedia(" http://www.helpexamples.com/flash/video/clouds.flv", "FLV")
you can assing the flv path to a variable like,
//here this is considered as stage always
this.flvPath = " http://www.helpexamples.com/flash/video/clouds.flv";
Now, you can send this flvPath dynamically too..by html variables , like
in the html where you embed this player just send this variable.
In the param tag of the html
<param name="movie" value="text_1.swf?flvPath=somfile.flv" />
// Dont forget to to use the "?" symbol to send the varible from html to flash.
Hope , it will help you...
Thanks again Arun
It all works now.. I've created a dynamic variable on the stage (varq) and added myMedia.setMedia(varq,"FLV")
And I can set the varq with <param name="movie" value="text_1.swf?flvPath=somfile.flv" /> in the html
I've also now added, window.document.Play to refresh the flash..
Getting a few problems, the video does'nt always change on the first click of the link ? Am I doing this the right way.
Should I have some sort of events handler in flash to detect change in varq?
Thanks.. heres a link to it.