# Animated Button

**URL:** https://forum.kirupa.com/t/animated-button/156324
**Category:** Uncategorized
**Created:** [July 25, 2005, 3:29am UTC](https://forum.kirupa.com/t/animated-button/156324 "2005-07-25T03:29:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IoX](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@IoX](https://forum.kirupa.com/u/IoX)
#### Post date: [July 25, 2005, 3:29am UTC](https://forum.kirupa.com/t/animated-button/156324/1 "2005-07-25T03:29:29Z")

</div>

Hi there, Im just starting out, and Im wondering how to animate a button. Like, on rollover i want a certain animation to happen. I tried

```auto
on(RollOver) {
	Home.onRollOver = function() {
		gotoAndPlay(101);
	};
}

```

but it didnt work ☹ you guys probably know 😛

thanks, IoX
