@Dennisk:
You can search the movide to load at the loading of the XML, setting the Node to point to it:
Code:
xd.onXMLLoadSuccess = function() {
playlist_mc.root = this.root;
playlist_mc.data = this.root;
xlf.node = this.root.firstChild; //XML Level File
//----------------------------------------------------------
_root.FC.autoPlay = true;
var thisnode="";
var fic= xlf.firstFile;
var Cnnt:Number=0;
var p:XMLNode;
var temFilme=false;
p=this.root.firstChild;
var ft=0;
for (var aNode:XMLNode = p; aNode != null; aNode=aNode.nextSibling) {
if (aNode.nodeName == "video") {
temFilme = true;
break;
}
if (temFilme)
break;
ft++;
}
while (p.hasChildNodes() && (!temFilme)){
ft=10*ft;
p = p.firstChild
for (aNode:XMLNode = p; aNode != null; aNode=aNode.nextSibling) {
if (aNode.nodeName == "video") {
temFilme = true;
break;
}
}
if (temFilme)
break;
ft++;
}
p.nextSibling;
xlf.node=aNode;
_global.checkedVars = false;
_global.OnlineView = false;
_global.__complete = true;
_global.isPub = false;
_global.xlf = xlf;
_global.xlf.node = aNode;
_root._visible = true;
};
Explaining: temfilme = "has movie"
;-)
Hope it helps
Fernando, Lisboa Portugal.
______________________________________________
It's not that I'm anti-social.. I'm just not user friendly!