I am attempting to create a custom FLV player in flash that will allow me to link to an external FLV file in the html object code. This is in order to easily change a video that will appear on a client's index page dynamically. Currently I am using an external player that does exactly what I wish to do (http://www.walkernews.net/mediaplayer.swf). However the client I'm building the site for requires a custom built player. My abilities in Flash (CS3) are limited but I have scripted in ActionScript and worked in Flash many times before.
The HTML code I'm using is as follows.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="720" height="480">
<param name="flashvars" value="file=http://localhost/videos/video_test.flv" />
<param name="movie" value="http://www.walkernews.net/mediaplayer.swf" />
<embed src="http://www.walkernews.net/mediaplayer.swf" width="720" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://localhost/videos/video_test.flv" />
</object>
As I stated, this links to a free third-party player, which is great, but I'd really need to build to my own. I have built a basic player in flash already using the FLVPlayback control, but am unsure on the details of making it dynamic.
If anyone can point me to a guide, or in the right direction, I would surely appreciate it as google searching hasn't returned any useful results. Thank you for your time.