I can disable my button, but how do I enable it again?
webXML = new XML();
webXML.ignoreWhite = true;
webXML.onLoad = function(ok) {
if (ok) {
loadCdMenu();
webData = this.firstChild.childNodes;
for (i=0; i<webData.length; i++) {
webBut = webMenu.attachMovie('button', 'butweb'+i, i);
trace(webBut);
webBut._y = (i*14)+18;
webBut.but_txt.text = webData*.attributes.text;
webBut.link = webData*.firstChild.firstChild;
webBut.onRollOver = function() {
this.gotoAndStop(2);
};
webBut.onRollOut = webBut.onReleaseOutside=function () {
this.gotoAndPlay(3);
};
webBut.onRelease = function() {
this.enabled = false;
mtClip.loadMovie(this.link);
};
}
} else {
trace('error loading xml');
}
};
webXML.load('web.xml');