hi i have made me a little xml driven menu trough a tutorial from some german site… beleef me it was not easy… reading german is not realy my thing… but it seems to work… no i like to ad a few thing to it… like a onMouseOver and i need a little help with _y position… can soemone hlep meout?
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i = 0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip"+i, i);
item._x = 7.5; //Horizontal pos
item._y = 20*i; // space between menu's
item.itemLabel.text = menuItem*.attributes.name;
item.myUrl = menuItem*.attributes.url;
item.onRelease = function() {
getURL(this.myUrl, "_blank");
};
}
};
menuXml.load("menu.xml");