thumbslinger
06-12-2009, 06:07 PM
Looking at the Brimelow tut at lynda.com to make a video player based off of xml, I have this actionscript code:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function () {
var nodes = this.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
list.addItem(nodes[i].attributes.desc,nodes[i].attributes.flv,nodes[i]);
}
//start playing first video in array
vid.play(list.getItemAt(0)).data;
list.selectedIndex = 0;
}
xml.load("/videos/videos.xml");
No errors but when I test or publish I get a blank screen and after a few seconds the message that a "script is causing the Flash player to run slowly" etc
The only thing on the stage is an FLVPlayback component and a List component.
Publish settings to AS2.0 and player 9
Any ideas?
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function () {
var nodes = this.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
list.addItem(nodes[i].attributes.desc,nodes[i].attributes.flv,nodes[i]);
}
//start playing first video in array
vid.play(list.getItemAt(0)).data;
list.selectedIndex = 0;
}
xml.load("/videos/videos.xml");
No errors but when I test or publish I get a blank screen and after a few seconds the message that a "script is causing the Flash player to run slowly" etc
The only thing on the stage is an FLVPlayback component and a List component.
Publish settings to AS2.0 and player 9
Any ideas?