Embedding YouTube vid via XML

Hey. I want to be able to embed a youtube video into a movie clip on stage, and be able to edit which video is embedded via XML. This functionality is needed by my client so they don’t have to open the thing in Flash.
So far I’ve managed to embed a video with this AS code:

Security.allowDomain("[www.youtube.com](http://www.youtube.com)");
var player:Object;
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
loader.load(new URLRequest("http://www.youtube.com/v/sXey9aUS99s?version=3"));
function onLoaderInit(event:Event):void {
addChild(loader);
loader.content.addEventListener("onReady", onPlayerReady);
loader.content.addEventListener("onError", onPlayerError);
loader.content.addEventListener("onStateChange", onPlayerStateChange);
loader.content.addEventListener("onPlaybackQualityChange",
onVideoPlaybackQualityChange);
}
function onPlayerReady(event:Event):void {
trace("player ready:", Object(event).data);
player = loader.content;
player.setSize(454, 360);
}
function onPlayerError(event:Event):void {
trace("player error:", Object(event).data);
}
function onPlayerStateChange(event:Event):void {
trace("player state:", Object(event).data);
}
function onVideoPlaybackQualityChange(event:Event):void {
trace("video quality:", Object(event).data);
}

This works great, however obviously in order to change the video you have to open Flash and edit the AS. I have some experience with XML, however I don’t know where to start in terms of embedding a youtube vid.
Any help would be much appreciated. Thanks!