I’m making a little portfolio site, mostly to get to grips with xml and LoadVars a bit better. But I@m having this problem - I load the first xml file (news.xml) while the preloader goes, but only use the onLoad function to check it when I need to use it. I decided this would be good because it doesn’t clutter up my preloader and also, I needed to have the onLoad when I wanted to get the data out it seemed. I got the news working, but then I tried to load some more variables from a text file (text_vars.txt) by the same process. When I come to load them (also using onLoad, to check that they are actually loaded before I try to access them)* it clears the news page. I don’t know why this is, or ho to stop it, but It only happened after I added in the second onLoad so I think it’s something to do with that. I tried taking out the second onLoad and just calling the data from the text file, with just the time between it being told to load and you navigating to that page ensuring that it is loaded in time. Can someone have a look at my .fla and see what I’m doing wrong? It’s just annoying me.
I will be wanting to load another xml file too, which holds all the information about the pictures.
Edit: Files are too big to attach - here they are:
http://benspencer.freefronthost.com/xml_problems_files.zip