# Help linking buttons to movie clips

**URL:** <https://forum.kirupa.com/t/help-linking-buttons-to-movie-clips/153788>\
**Category:** Uncategorized\
**Created:** [July 4, 2005, 6:13pm UTC](https://forum.kirupa.com/t/help-linking-buttons-to-movie-clips/153788 "2005-07-04T18:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpspoons](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Post date:** [July 4, 2005, 6:13pm UTC](https://forum.kirupa.com/t/help-linking-buttons-to-movie-clips/153788/1 "2005-07-04T18:13:00Z")

</div>

hi.  
You may of seen a similar thread to this somewhere else (its just I added it and now can’t find it so i dicided to make a new one).

I am making a site for a friend of mine, but I encountered a problem. How do you tell a button to go off and play/stop a frame within another mc.I couldn’t work it out!!! I tried this, (if you look at the fla attached it might make more sence), within the first button I put:

“on(press){  
this.mc.hello = 1;  
}”

and on the second:

“on(press){  
this.mc.hello = 2;  
}”

and so on. Within the mc I put:

“stop();  
if (this.hello == 1) {  
gotoAndStop(1);  
}  
if (this.hello == 2) {  
gotoAndStop(2);  
}  
if (this.hello == 3) {  
gotoAndStop(3);  
}  
if (this.hello == 4) {  
gotoAndStop(4);  
}  
if (this.hello == 5) {  
gotoAndStop(5);  
}  
if (this.hello == 6) {  
gotoAndStop(6);  
}”

But it didn’t work. (btw the attached fla is not the actual site I am making for my friend, it is just a copy to show you the problem, I didn’t want to put the actual site fla for obvious reasons).

Please help.  
Thanks.
