# Help with Menu Slider

**URL:** <https://forum.kirupa.com/t/help-with-menu-slider/183754>\
**Category:** flash\
**Created:** [March 29, 2006, 7:42pm UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754 "2006-03-29T19:42:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [March 29, 2006, 7:42pm UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/1 "2006-03-29T19:42:14Z")

</div>

Hi all

i have aproblem with the flash menu slider i made, i have the slider working fine but i need to set links up to the buttons

i followed the instructions from [http://www.kirupa.com/developer/mx2004/menu\_with\_slider.htm](http://www.kirupa.com/developer/mx2004/menu_with_slider.htm)

but i do not know how to or what is the best option to get the buttons linking my web pages

i have 6 buttons

button1 - home  
button2 - members  
button3 - downloads  
button4 - games  
button5 - links  
button6 - ? (help)

have any of you guys got some ideas

thanks

Dunky :chinaman:

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 30, 2006, 5:42am UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/2 "2006-03-30T05:42:37Z")

</div>

[http://www.n99creations.com/?pID=archives&col=Blue&arch=Sliding\_Menu\_with\_gotoAndStop](http://www.n99creations.com/?pID=archives&col=Blue&arch=Sliding_Menu_with_gotoAndStop)

I made a quick example, if that’s not what you mean, get back to me;)

---

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [March 30, 2006, 8:47am UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/3 "2006-03-30T08:47:23Z")

</div>

Yeah thatys kind of what i need but how do i link the buttons to my pages whats the coding needed

here is how far i have got please dont laugh at the girly version of our first web page 😃

[http://www.theoaps.co.uk/index1.htm](http://www.theoaps.co.uk/index1.htm)

thanks

Dunky

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [March 30, 2006, 9:07am UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/4 "2006-03-30T09:07:43Z")

</div>

try

```auto
var urls:Array = ["page1","page2","page3","page4","page5","page6","page7"];
var count:Number = 1;
var easeSpeed:Number = 6;
var val:MovieClip = but1;
while (_root["but"+count]) {
    _root["but"+(count)].id=count, _root["but"+(count++)].onPress=function () {
        val=_root["but"+this.id], getURL("./"+urls[this.id-1]+".html", target);
    };
}
ease.onEnterFrame = function() {
    this._x += (val._x-ease._x)/easeSpeed;
};

```

You will need to change target, I haven’t test it at all, so let me know if it’s wrong

---

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [March 30, 2006, 12:56pm UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/5 "2006-03-30T12:56:52Z")

</div>

ok i will try after work to get it going thanks for the reply, i gather by targets you mean “page1” and so on.

thanks

Dunky

---

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [April 3, 2006, 12:14pm UTC](https://forum.kirupa.com/t/help-with-menu-slider/183754/6 "2006-04-03T12:14:06Z")

</div>

Cant get it to work i think im being a bit thick can you explain the page and but in the script
