# Mc trouble

**URL:** <https://forum.kirupa.com/t/mc-trouble/30154>\
**Category:** Uncategorized\
**Created:** [September 4, 2003, 2:02pm UTC](https://forum.kirupa.com/t/mc-trouble/30154 "2003-09-04T14:02:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![doOfus](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doOfus](https://forum.kirupa.com/u/doOfus)\
**Post date:** [September 4, 2003, 2:02pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/1 "2003-09-04T14:02:19Z")

</div>

hey there guys !! ok… so i created this movie clip { lets call it “main mc” heh}… and in the movie is another movieclip [that i am using as a button]… and when you click that mc, it takes you to a certain part of the main mc…

but it doesnt work !! can anyone help me out please? :block:

---

<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 4, 2003, 2:13pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/2 "2003-09-04T14:13:30Z")

</div>

is main mc the instance name? i’m not sure if you’re allowed spaces in instance names…I’m not sure what i know hwat you mean…do you mean when you press a button, you want to access something within a movieCLip; and this movieclip is within ANOTHER movieclip??

i know a bit confusin what i just said 😛

---

<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 4, 2003, 2:13pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/3 "2003-09-04T14:13:43Z")

</div>

onClipEvent(load) {  
this.onRelease = function() {  
\_parent.gotoAndStop(frame);  
}  
}

Put this on the movieclip that has to be pressed and change “frame” to the frame number to go to…  
You have to use \_parent because other wize it would try going to the specified frame inside the movieclip that has those actions…

edit: yeah… I don’t think you can use spaces in instance names but that’s not the case here…

---

<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 4, 2003, 2:16pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/4 "2003-09-04T14:16:27Z")

</div>

> \*Originally posted by blah-de-blah \*  
> \*\*is main mc the instance name? i’m not sure if you’re allowed spaces in instance names…I’m not sure what i know hwat you mean…do you mean when you press a button, you want to access something within a movieCLip; and this movieclip is within ANOTHER movieclip??

i know a bit confusin what i just said 😛 \*\*

no it isnt instance name… :crazy: i just called it main mc so that it would less confusing… hehe… guess it didnt work. lol :cowboy:

what i mean is… when you press this mc inside another mc… it takes you to a certain frame within the mc that its in… lol i hope that was clearer… hehe :thumb:

---

<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 4, 2003, 2:17pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/5 "2003-09-04T14:17:07Z")

</div>

> \*Originally posted by Syko \*  
> \*\*onClipEvent(load) {  
> this.onRelease = function() {  
> \_parent.gotoAndStop(frame);  
> }  
> }

Put this on the movieclip that has to be pressed and change “frame” to the frame number to go to…  
You have to use \_parent because other wize it would try going to the specified frame inside the movieclip that has those actions…

edit: yeah… I don’t think you can use spaces in instance names but that’s not the case here… \*\*

cool !! ill try that out ! 😃 thanks :tb:

_edit_  
woohooo !! it worked !! thanks a lot man !! :bu:

---

<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 4, 2003, 2:18pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/6 "2003-09-04T14:18:50Z")

</div>

OK that was SLIGHTLY clearer 😛 dind’t sykos work? ok so you have 2 MC’s (mc1 and mc2). MC1 is in MC2…so when you press MC1 you want it to go to a frame in MC1 right??

So you just do:

on (release) {  
this.gotoAndPlay(20)  
}

something like that?? or am i wrong :-\

---

<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 4, 2003, 2:21pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/7 "2003-09-04T14:21:08Z")

</div>

it worked ! and i couldnt be happier… rofl 😉

---

<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 4, 2003, 2:35pm UTC](https://forum.kirupa.com/t/mc-trouble/30154/8 "2003-09-04T14:35:36Z")

</div>

lol ppl! 🙂

np =)
