Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

XML preloader

Cow Forums : Adobe Flash
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

Re: XML preloader
by RobotHero on Dec 4, 2006 at 4:51:21 am

Your XML is missing from your post. You may need to use < code > tags.

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]