|
XML preloader
by lensflare1
on
Dec 2, 2006 at 9:33:29 am |
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
Hi there.
Can anyone help me with how to preload the following xml data.
I am using big JPEGS with the xml, and they take a while to load.
I just want to add a nice visual movieclip while each one loads.......
script is below..
thanks in advance
var captions:Array = new Array();
var whoIsOn:Number;
x.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0;i urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
whoIsOn = 0;
}
x.load("test.xml");
Respond to this post • Return to posts index
| |