# Quick help!

**URL:** <https://forum.kirupa.com/t/quick-help/4751>\
**Category:** Uncategorized\
**Created:** [August 19, 2002, 12:55am UTC](https://forum.kirupa.com/t/quick-help/4751 "2002-08-19T00:55:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valmont](https://avatars.discourse-cdn.com/v4/letter/v/f0a364/32.png) [@Valmont](https://forum.kirupa.com/u/Valmont)\
**Post date:** [August 19, 2002, 12:55am UTC](https://forum.kirupa.com/t/quick-help/4751/1 "2002-08-19T00:55:51Z")

</div>

I have a button inside of a movieclip… AND I CAN’T RMEMEBER HOW TO MAKE IT GO.

so simple a thing, and i can’t get past it…

it’s just a button in a movieclip… i’m not asking too much… and i need it to point to and play a different scene… and i already tried the stupid \_root. thingie…

and it’s so simple…  
i’m going to go cry now…

help.

_sniff_

Valmont

---

<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:** [August 19, 2002, 2:06am UTC](https://forum.kirupa.com/t/quick-help/4751/2 "2002-08-19T02:06:50Z")

</div>

What is the code on the button?

What frame and scene do you need to gotoAndPlay?

---

<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:** [August 19, 2002, 2:25am UTC](https://forum.kirupa.com/t/quick-help/4751/3 "2002-08-19T02:25:46Z")

</div>

button code:

* * *

on (release) {  
gotoAndPlay ("\_root.main", 6);  
}

* * *

All i really need it to do is play frame 6 in the same scene that the mc is in. main is the scene that is going to contain most of the movie as this is just a temporary site. The only reason that the button has to be inside of an mc, is because the button has to be part of a moving whole, but this moving whole can’t be a button…  
either way i need a button in an mc that can point to a frame of the scene the mc is in.

thanks

Valmont

---

<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:** [August 19, 2002, 2:56am UTC](https://forum.kirupa.com/t/quick-help/4751/4 "2002-08-19T02:56:35Z")

</div>

have you tried using a frame label instead of number? Try that out and see if it helps at all.

also, you’re calling to the root to go somewhere, so it belongs at the head of the oop string, like so.

on (release) {  
\_root.gotoAndPlay (“main”, 6);  
}

that on it’s own might fix the problem… I’m not sure.

---

<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:** [August 19, 2002, 3:40am UTC](https://forum.kirupa.com/t/quick-help/4751/5 "2002-08-19T03:40:53Z")

</div>

yeah, i did try the frame label, and it didn’t work, so i’ll try putting the root up front of the string. Let you know how it goes  
thanks  
valmont

---

<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:** [August 19, 2002, 10:04pm UTC](https://forum.kirupa.com/t/quick-help/4751/6 "2002-08-19T22:04:16Z")

</div>

yeah… putting the root before the string did nothing… any other ideas?

---

<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:** [August 20, 2002, 5:37am UTC](https://forum.kirupa.com/t/quick-help/4751/7 "2002-08-20T05:37:39Z")

</div>

nope, but you’re welcome to send me the FLA to debug. If you do, just be sure to include enough instructions related to what the problem is. I get a lot of emails requesting help in a day.

my email is [upuaut@centerspin.com](mailto:upuaut@centerspin.com)

---

<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:** [August 20, 2002, 8:39am UTC](https://forum.kirupa.com/t/quick-help/4751/8 "2002-08-20T08:39:52Z")

</div>

As a quick thought, you have named all the movie clips etc right?

Took me ages to catch a dumb typo last time. 🙂

---

<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:** [August 20, 2002, 8:44am UTC](https://forum.kirupa.com/t/quick-help/4751/9 "2002-08-20T08:44:03Z")

</div>

yeah… troubleshooting techniques, for me, always start with checking instance names verses calls to those names. Instance names often disapear after you think you’ve set them so it’s a good practice to get into.

You can also use the Movie Explorer to tell you path names to objects contained in your movie. Useful for figuring out those pesky call operations.

Second thing I always check when debuging to that I have a semi-colon at the end of each appropriate line. I’m always leaving those out and screwing something up. Sometimes it’s ok… flash wont care, other times it just makes things buggy.

---

<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:** [August 21, 2002, 8:12pm UTC](https://forum.kirupa.com/t/quick-help/4751/10 "2002-08-21T20:12:57Z")

</div>

Yay!! Found out what i’m working on wasn’t needed for the project… but even so… if you need a button inside an MC… (say you have a button that follows the X axis of a mouse, but is part of a bigger picture…) then what the hell should you do?  
we should get this one down for future use so that the simple folk can learn from us wise Tai Bo Masters.  
Valmont

---

<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:** [August 21, 2002, 9:03pm UTC](https://forum.kirupa.com/t/quick-help/4751/11 "2002-08-21T21:03:57Z")

</div>

There isn’t anything to solve. The code works fine for me 100% of the time. You had to have an error in the project somewhere.

---

<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:** [August 23, 2002, 2:14am UTC](https://forum.kirupa.com/t/quick-help/4751/12 "2002-08-23T02:14:07Z")

</div>

hmmmm…

that is all

🙂  
(thanks)  
Valmont

---

<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:** [August 23, 2002, 4:14am UTC](https://forum.kirupa.com/t/quick-help/4751/13 "2002-08-23T04:14:55Z")

</div>

I did run into a similar problem with another fellow in a recent thread. He opted to leave out the scene name, and it worked fine… though he was using frame names. So the solution might be

on (release) {  
\_root.gotoAndPlay (,6);  
}

or you might have to give the frame a name and call it like this

on (release) {  
\_root.gotoAndPlay (“theNameOfTheFrame”);  
}

you could try both of those out in your code, just to see if it solves the problem. I appears that Flash doesn’t like the scene names when being called from inside another movie clip. I don’t know why that would be, and I haven’t had time to experiement with it so I’m still not 100% that this is the solution… but it worked for the other gentleman.

I should not have said that that code works for me 100% of the time, because I never use multiple scenes to divide up my movie, so I never use scene names in my action methods.

---

<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:** [August 23, 2002, 9:03am UTC](https://forum.kirupa.com/t/quick-help/4751/14 "2002-08-23T09:03:33Z")

</div>

I’ve had problems in the past with both Scene names and frame labels, and in the end I’ve had to go for the awkward way and just use the frame numbers.
