# Link button with MC

**URL:** <https://forum.kirupa.com/t/link-button-with-mc/23115>\
**Category:** flash\
**Created:** [June 12, 2003, 11:37pm UTC](https://forum.kirupa.com/t/link-button-with-mc/23115 "2003-06-12T23:37:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobbywong03](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bobbywong03](https://forum.kirupa.com/u/bobbywong03)\
**Post date:** [June 12, 2003, 11:37pm UTC](https://forum.kirupa.com/t/link-button-with-mc/23115/1 "2003-06-12T23:37:03Z")

</div>

Hi guys,

How can I do this with the button when u click on and the MC play? Please check the site and see wht I mean…Click on one of the link from the top…( who we are, what we do, ect…) [http://www.morneausobeco.com/EN/default.asp](http://www.morneausobeco.com/EN/default.asp)

Please attach a flash sample…Thank you

Bobby,

---

<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:** [June 13, 2003, 12:31am UTC](https://forum.kirupa.com/t/link-button-with-mc/23115/2 "2003-06-13T00:31:06Z")

</div>

bobby -

first of all, you should search the forums before you ask a question like this. this is one of the most commonly asked questions about flash mx interactivity, and you’ll find that answers abound on this forum about your question.

that said, i was bored so i did it for you anyways.

for your movie clip, make sure the first and last frames contain stop(); actions to ensure that the movie clip does not play before it is told to.

next, you’ll need to give it a relevant instance name using the **properties** panel.

after that, select your button and add the following code to it (where box\_mc is the instance name of the movie clip):

```auto
on(release){
	_root.box_mc.gotoAndPlay(2);
}

```

this tells flash that when the button is released, go to the root timeline, find box\_mc and play its second frame.

hope that helps. (see attached for example)

---

<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:** [June 13, 2003, 3:51am UTC](https://forum.kirupa.com/t/link-button-with-mc/23115/3 "2003-06-13T03:51:56Z")

</div>

I agree. I posted this yesterday:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25707](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=25707)

It has a link with a tut on it to.

---

<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:** [June 13, 2003, 1:42pm UTC](https://forum.kirupa.com/t/link-button-with-mc/23115/4 "2003-06-13T13:42:55Z")

</div>

thank you guys…

Bobby
