# Making MC into a button

**URL:** https://forum.kirupa.com/t/making-mc-into-a-button/96580
**Category:** Uncategorized
**Created:** [December 11, 2003, 2:36am UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580 "2003-12-11T02:36:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![padawan](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@padawan](https://forum.kirupa.com/u/padawan)
#### Post date: [December 11, 2003, 2:36am UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/1 "2003-12-11T02:36:20Z")

</div>

i am looking to use mc’s for my buttons instead of buttons. what is the as i need to give a mc to geturl ([www.kirupa.com](http://www.kirupa.com)) and a diff one to load another mc  
is it…

still learning as…couldn’t of guessed huh.😛

grrr. i am buying a book on as…cause i need it learn it

anyhelp would be great…or if i didn’t leave enough info let me know.

---

<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: [December 11, 2003, 11:34pm UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/2 "2003-12-11T23:34:35Z")

</div>

Symbol=menu, Layer=, Frame=1: Line 1: Statement must appear within on/onClipEvent handler  
forums.onRelease = function(){

this is the error i am getting now

---

<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: [December 11, 2003, 11:41pm UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/3 "2003-12-11T23:41:05Z")

</div>

[AS]  
onClipEvent(load){  
this.onRelease = function(){  
getURL(“[www.kirupa.com](http://www.kirupa.com)”, “\_blank”);  
}  
[/AS]  
use this if you are putting the code on the button itself. You can also put the code just on the main timeline but change “this” to “forums”

---

<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: [December 11, 2003, 11:43pm UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/4 "2003-12-11T23:43:19Z")

</div>

crap, now i am getting a syntax error

Symbol=menu, Layer=, Frame=1: Line 5: Syntax error.

---

<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: [December 11, 2003, 11:48pm UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/5 "2003-12-11T23:48:31Z")

</div>

Syntax error usually means spelling mistake. Check everything three times, at least. 😃

---

<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: [December 11, 2003, 11:49pm UTC](https://forum.kirupa.com/t/making-mc-into-a-button/96580/6 "2003-12-11T23:49:07Z")

</div>

🙂 lol, ok i will. thanks
