# New animated buttons not working

**URL:** <https://forum.kirupa.com/t/new-animated-buttons-not-working/56888>\
**Category:** Uncategorized\
**Created:** [July 8, 2004, 4:08pm UTC](https://forum.kirupa.com/t/new-animated-buttons-not-working/56888 "2004-07-08T16:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [July 8, 2004, 4:08pm UTC](https://forum.kirupa.com/t/new-animated-buttons-not-working/56888/1 "2004-07-08T16:08:27Z")

</div>

I have designed a web catalogue and like every web site it uses buttons. Now that I am more into actionscript and design now-a-days I decided to replace the buttons with nice actionscripted buttons with a nice fade using the code:

```auto

// as for the fade in/out action. 

onClipEvent (enterFrame) {
	this.buttonid.text = "Enter Catalogue";
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		this.nextFrame();
	} else {
		this.prevFrame();
	}
}

// main button action

on (release) {
             gotoAndPlay(1);
}

```

Now my catalogue ain’t working. Why does it work with buttons and not with movieclip buttons??

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 5:38pm UTC](https://forum.kirupa.com/t/new-animated-buttons-not-working/56888/2 "2004-07-08T17:38:32Z")

</div>

try changing…

```auto

on (release) {
             gotoAndPlay(1);
}

```

to

```auto

on(release) {
_root.gotoAndPlay(1);
}

```

or what ever the path may be…

```auto

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 8:25am UTC](https://forum.kirupa.com/t/new-animated-buttons-not-working/56888/3 "2004-07-09T08:25:03Z")

</div>

Ah haa!! Fantastic. I never would have thought of something that simple!!

Thanks very much.

Ads.
