Loading flv source from xml

I want to put a video section on my site and was trying to create a flv player which can just simply lie on the page and play a video taking the source from a xml or txt.

I m putting multiple links/thumbs on site(which will keep changing with time).

after clicking the thumbs/links the javascript will write a xml/txt on the fly and will refresh the flv player to reread the file.

If somebody can help me write actionscript for the same I’ll be really thankful.

Thanks in advance.