Skip to main content
Participant
September 7, 2008
Question

Create button to load XML!

  • September 7, 2008
  • 2 replies
  • 260 views
Hello! Please help! I created 3 languages into strings panel, and i created 3 buttons for this languages! But this buttons not work (:! Which script in this butttons?

my script:

}

on(release) {
loadVariables("ua/ArtMaster_ua.xml", "_root");
}
This topic has been closed for replies.

2 replies

Participant
September 8, 2008
Thank you!
Inspiring
September 7, 2008
loading an xml file as varuables wont work. You need either to feed a files with just variables ( like var1=ladida&var2=didala etc );
or you use an xml object to load the xml:
myXML =new XML();
myXML.load("xmlfile.xml")

then you need to need to process the xml to add meaning to the tags.. or just put them in an array...