# Scrolling menu II

**URL:** https://forum.kirupa.com/t/scrolling-menu-ii/18966
**Category:** Uncategorized
**Created:** [April 23, 2003, 1:03am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966 "2003-04-23T01:03:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ma2os](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@ma2os](https://forum.kirupa.com/u/ma2os)
#### Post date: [April 23, 2003, 1:03am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/1 "2003-04-23T01:03:03Z")

</div>

Hi, I would really appreciate anyone’s help with this problem.

onClipEvent (load) {  
xcenter = 625;  
speed = 1/10;  
}  
onClipEvent (enterFrame) {  
var distance = \_root.\_xmouse-xcenter;  
\_x += (distance\*speed);  
if (\_x\>0) {  
\_x = -1428.9;  
}  
if (\_x\<-1428.9) {  
\_x = 0;  
}  
}

That works fine for me, but how do I make the buttons to work…

on (release) {  
gotoAndStop(“abc”, 100);  
}

Buttons don´t work when the menu is scrolling??? thanks for any advice!!

---

<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: [April 23, 2003, 1:12am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/2 "2003-04-23T01:12:43Z")

</div>

It’s

```php

LoadMovie();

```

---

<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: [April 23, 2003, 3:01am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/3 "2003-04-23T03:01:10Z")

</div>

kel… wha!!!

And it doesn’t work because of the method you are using to go to a frame. It seems to me that you are targeting a scene to play here.

Well you can only target scenes through buttons or actions on the main timeline only. Since your buttons are inside clips, it will not work.

A workaround would be to give that frame a frame label (right click on the frame and open the properties), and then use a

gotoAndStop(“frameLabelName”); (double quotes required)

---

<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: [April 23, 2003, 3:52am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/4 "2003-04-23T03:52:09Z")

</div>

hey there!! I also try that (“framelabelname”) and the same thing happens… how should the actions in each button be or what so that they work inside a movie clip ?? thanks anyway… I´ll keep trying

---

<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: [April 23, 2003, 3:58am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/5 "2003-04-23T03:58:18Z")

</div>

Try using \_root.gotoAndStop(“frameLabelName”)

Sorry, I didn’t realize I forgot to add the \_root. That tells it to go to the main timeline.

If that doesn’t work, can you post your .fla?

---

<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: [April 23, 2003, 4:04am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/6 "2003-04-23T04:04:56Z")

</div>

YEAH!!! that´s it!!! thanks a lot!!! its working 100%

---

<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: [April 23, 2003, 4:06am UTC](https://forum.kirupa.com/t/scrolling-menu-ii/18966/7 "2003-04-23T04:06:50Z")

</div>

Hehe cool, sorry for the slip up 🙂
