# Buttons disabled by AS?

**URL:** <https://forum.kirupa.com/t/buttons-disabled-by-as/158625>\
**Category:** Uncategorized\
**Created:** [August 10, 2005, 8:26pm UTC](https://forum.kirupa.com/t/buttons-disabled-by-as/158625 "2005-08-10T20:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [August 10, 2005, 8:26pm UTC](https://forum.kirupa.com/t/buttons-disabled-by-as/158625/1 "2005-08-10T20:26:29Z")

</div>

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.

```auto
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 🙂
