# Problems with making a button play an animation \[renamed\]

**URL:** <https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909>\
**Category:** flash\
**Created:** [September 21, 2004, 8:47am UTC](https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909 "2004-09-21T08:47:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lord\_viper](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lord\_viper](https://forum.kirupa.com/u/lord_viper)\
**Post date:** [September 21, 2004, 8:47am UTC](https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909/1 "2004-09-21T08:47:28Z")

</div>

hi im not sure how to put this… but i need help finishing out the pathway to my movie clip… or somthing like that… let me explain…  
this is how my document is set out…  
-\> means the next this is inside the one before it.  
Scene 1 -\> Menu -\>Tween 1 -\>Button1 -\> home(mc)

what i want to do is… when my mouse rolls over the button1, it will make home(mc) go to a certain frame and start ot play… this is what i could come up with but it didnt work… i got the path wrong i thinks…

on (rollOver) {  
button1.home(mc).gotoAndPlay(2);  
}

that part of code is on the button1…

plz can someone help 😃 i would be very greatfull…

---

<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:** [September 21, 2004, 11:05am UTC](https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909/2 "2004-09-21T11:05:20Z")

</div>

rename home(mc) to home\_mc, i get here an error that home(mc) is reserved by the system…

else check if this works:

on (rollOver) {  
this.home\_mc.gotoAndPlay(2);  
}

or

on (rollOver) {  
\_parent.home\_mc.gotoAndPlay(2);  
}

---

<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:** [September 21, 2004, 11:31am UTC](https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909/3 "2004-09-21T11:31:39Z")

</div>

home(mc) was jsut an abrev… anyway thx but someone alrdy help me 🙂

---

<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:** [September 21, 2004, 11:37am UTC](https://forum.kirupa.com/t/problems-with-making-a-button-play-an-animation-renamed/64909/4 "2004-09-21T11:37:53Z")

</div>

post the fla file or the AS at least 😉
