# Could someone help with XML driven video player?

**URL:** <https://forum.kirupa.com/t/could-someone-help-with-xml-driven-video-player/286665>\
**Category:** flash\
**Created:** [April 18, 2009, 7:19pm UTC](https://forum.kirupa.com/t/could-someone-help-with-xml-driven-video-player/286665 "2009-04-18T19:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vurtitude](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vurtitude](https://forum.kirupa.com/u/vurtitude)\
**Post date:** [April 18, 2009, 7:19pm UTC](https://forum.kirupa.com/t/could-someone-help-with-xml-driven-video-player/286665/1 "2009-04-18T19:19:35Z")

</div>

I created an FLV player using a tutorial. The player is XML driven, so that when I click on the next button, the next video in the XML list plays.  
The problem is that I don’t want to do it this way. I want to have some thumbnail images on the side of the player representing each video, and when clicked the appropriate video plays.

The XML AS looks like this:  
var videoList:XML = new XML();  
var loader:URLLoader = new URLLoader();  
var req:URLRequest = new URLRequest(“playlist.xml”);  
loader.load(req);

loader.addEventListener(Event.COMPLETE, completeHandler);  
function completeHandler(evt:Event):void {  
videoList = XML(evt.target.data);  
ns.play(videoList.video[currentVideo].@file.toString());  
resumeVideo();  
};

Can someone help me with this?  
Thanks.
