Search tutorials
1)First of all, we have to create the base of the button, what it means:
- The button background
- Empty text
2)Once we have done this, we have to create a new xml object after declaring variables correctly:
tabs_xml = new XML();
tabs_xml.ignoreWhite = true;
var rootNode = tabs_xml.firstChild;
tabs_xml.onLoad = function() {
...
}
3)The next tep is reading the xml file to create as many buttons as items we have in our xml.
4)Inside XML function we create a function to control actions once we press on it.
5)In the end, outside the main function, we load the XML file
tabs_xml.load("tabs2.xml");
6)If any question, don't hesitate to ask.
» Level Advanced |
Added: 2007-02-27 Rating: 2.78 Votes: 9 |
» Author |
David Trelles Professional Multimedia Designer davetrey@gmail.com |
» Download |
Download the files used in this tutorial. |
Download (13 kb) |
» Forums |
More help? Search our boards for quick answers! |