# Animated buttons

**URL:** <https://forum.kirupa.com/t/animated-buttons/154140>\
**Category:** Uncategorized\
**Created:** [July 7, 2005, 7:30am UTC](https://forum.kirupa.com/t/animated-buttons/154140 "2005-07-07T07:30:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerocrew](https://avatars.discourse-cdn.com/v4/letter/z/90ced4/32.png) [@zerocrew](https://forum.kirupa.com/u/zerocrew)\
**Post date:** [July 7, 2005, 7:30am UTC](https://forum.kirupa.com/t/animated-buttons/154140/1 "2005-07-07T07:30:27Z")

</div>

hey im trying to make buttons that are animated… on mouse over have the button animated bigger, on mouse out button shrinks down. i figured out how to do this using MC’s but when i tried to apply my actions script to make them load my Mc’s (pages) nothing happened. here is my action script.

on (rollOver) {  
this.gotoandplay(2);  
}  
on (rollOut) {  
this.gotoandplay(21);  
}

onClipEvent (mouseUp) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “contact”;  
container.loadMovie(“contact.swf”);  
} else if (\_root.currMovie != “contact”) {  
if (container.\_currentframe\>=container.midframe) {  
\_root.currMovie = “contact”;  
container.play();  
}  
}  
}

what is wrong or am i approaching this all wrong?
