Flash XML Preloader
- Started
- Last post
- 9 Responses
- nosaj
Any links/ tutorials? Thanks.
(This is the last thing I need to figure out before I leave for my honeymoon!)
- kyl30
I might be able to help if you can be more specific as I've been in xml hell lately.
- kyl30
- jpea0
if you're loading it as an Object(), can't you access it like any other asset?
something like:
aXML= new XML
aXML.getBytesLoaded
aXML.getBytesTotal
- nosaj0
Thanks - I'm going to check those both out:
I just have a simple XML file that is being loaded. One of the values loaded changes the colour of a Flash Movie Clip. Sometimes it doesn't seem to completely load. I just want a basic preload.
- kyl30
One of the kirupa tuts should help you out then if you just need to include an xml file
- jpea0
if you just need it to be sure to load it, then just use onLoad.
myXml = new XML()
myXml.onLoad = loadXML
myXml.load("file.xml")
function loadXML(){
something
}
- Anarchitect0
show her
how big
your xml parsing skills
are.
- dijitaq0
var myXML:XML = new XML();
myXML.onLoad = function() {
//parse xml
}
myXML.load("file.xml");//preload
var preloadXML = function(target) {
var bytesLoaded:Number = target.getBytesLoaded();
var bytesTotal:Number = target.getBytesTotal();
//
if(bytesLoaded>=bytesTotal) {
//do something
clearInterval(preloadXMLInt);
}
};var preloadXMLInt:Number = setInterval(preloadXML, 50, myXML);
- kyl30
Probably been asked a million times but:
whats the current Xml/flash bible?