I made a button, and in the “over” frame is an animation mc.
I tested this button with no AS assigned to it, and there is no problem at all, when I go over the button, the button plays.
Now I assigned a bunch AS code to the button, and suddenly, the button dont work anymore, the cursor transformes in a pointing finger, and on release it does what the AS wants it to do, but the 2nd frame doesnt show when I go over the button.
next is the AS I used on that button.
on (release) {
function leesXML(geladen) {
if (geladen) {
naam = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
country = this.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
leeftijd = this.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue;
gender = this.firstChild.childNodes[1].childNodes[3].firstChild.nodeValue;
email = this.firstChild.childNodes[1].childNodes[4].firstChild.nodeValue;
homepage = this.firstChild.childNodes[1].childNodes[5].firstChild.nodeValue;
xmlUrl = this.firstChild.childNodes[1].childNodes[6].firstChild.nodeValue;
_root.ThisNaam.text = naam+"'s personal information";
_root.adres.text = xmlUrl;
_root.friends.text = naam+newline+country+newline+leeftijd+newline+gender+newline+email+newline+homepage;
_root.friendsknop.label = naam+"'s friends";
}
}
onzeGegevens = new XML();
onzeGegevens.ignoreWhite = true;
onzeGegevens.onLoad = leesXML;
onzeGegevens.load(_root.xmlUrl);
}
Can anyone tell me whats wrong, the AS works fine, but its just that the button dont show its “over” frame…
Thx for at least reading my problem