In this tutorial, you will learn how to create dynamic FLV player in Flash. The FLV file URL will be passed to the player in the embed code with the help of FlahVars.




flv.contentPath = flvurl;
< embed src="flvplayer.swf" flashvars="flvurl=movie.flv" type="application/x-shockwave-flash" height="290" width="300">< /embed>
Labels: ActionScript 2, Flash, Flash Intermediate, FlashVars, Tutorials
i find this tutoriol realy nice and easy one. i never thought creating a dynamic movie is is so easy. thanke
but i have question...
what if i have more then one flv file to play dynamically one by one plz solv this prob.
thak you onecagain
By mahatab, at May 29, 2008 1:05 AM
I think you should make changes in the FLV player itself. I will do some search on this issue, and post a good tutorial soon on your question.
By makubex, at May 29, 2008 4:07 AM
flv.contentPath = flvurl; works in Flash9? I cannot find the way to make it work to take advantage of the full screen option template
By guillermo, at August 26, 2008 7:54 PM
Spent a few hours on an different, older tutorial that left me scratching my head. This one worked exactly as planned. Thanks for sharing.
By asdf, at September 3, 2008 8:49 AM
hi, your tutorial helped me a lot. i would like to know how can i add total time/ time remaining in this video player.
vineet
By vinweb, at March 4, 2009 7:18 AM
I tried this and it doesn't work. I also downloaded the source files and that doesn't work either.
Please help
This tutorial is really nice, simple and effective. I like it.
Another software that I like is on playerdiy.com - http://www.playerdiy.com/
It is a very easy to use web FLV player creator. No code knowledge is required. Here is the tutorial - http://www.playerdiy.com/support/tutorial/customize-flash-video-player.html
Really thnx.... u make it so simple..i saw to many thing but,,it too cool
By zayeem, at July 12, 2010 10:08 PM
I thought I was never going to find a relevant document on dynamic contentPath with FlashVars.
Thank you.
This particular blog is really informative. I really may have acquired various extremely desired details.
I came to know how dynamic Flv player in flash is been created after seeing your tutorial. Exellent guide go ahead with it...... Thanks!
hello, I know this is a noobie question, but what program did you use to make this?
Is it Adobe Flash Professional CS5?
I'm using a windows 7 OS.
By , at December 15, 2011 10:50 AM
Never mind the post above, I figured that out, but now I have a different problem. I don't know how to use the param tags. My html displays a blank screen. Can you please write the full code?
This is my full code...
<html
<head
<title </titl
</head
<body
<param name="movie" value="flvplayer.swf" /
<param name="flashvars" value='ncm.flv' /
<embed src="flvplayer.swf" flashvars="flvurl=ncm.flv" type="application/x-shockwave-flash" height="290" width="300" </embed
</body
</htm
By , at December 15, 2011 12:45 PM