# Im a newbie, but I really want to do this

**URL:** <https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900>\
**Category:** Uncategorized\
**Created:** [August 24, 2002, 2:49am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900 "2002-08-24T02:49:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmb597](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jmb597](https://forum.kirupa.com/u/jmb597)\
**Post date:** [August 24, 2002, 2:49am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/1 "2002-08-24T02:49:57Z")

</div>

Hi, I am trying to create a menu like the one on the spider-man site… [http://www.spiderman.sonypictures.com/](http://www.spiderman.sonypictures.com/)

click on enter site  
click on skip intro

The menu that is on the bottom. I love how it stays in place until you move your cursor from side to side. I am trying to do that and can’t seem to figure it out. I want to beable to position my cursor anywhere on my horizontal menu and have it move exactly the same as what you see. Then when I want to click on something it will stop at that position where my cursor stops. My menu is divided in different sections like the spiderman one, but instead of the text, it’s little links…get it?? Can anyone help me?? Or maybe know of a tutorial that is somewhat like it? I found one but the menu was in constant movement. I want mine to stay still until the cursor moves. Thanks!

Jill:) 🙂 🙂

---

<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 24, 2002, 8:43am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/2 "2002-08-24T08:43:04Z")

</div>

I’d like to see the tutorial/code for this one too if anyone has it!!

I thought I had one but it turned out to be your basic scroller, bummer!!

I dig how it doesn’t keep sliding and it’s slightly “magnetized” to your mouse, comes across much more professional.

Anyway, just thought I’d ad SOMETHING to this thread…albeit my 2 cents!! Worth about that much too…

Peace

Jay

---

<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 24, 2002, 2:20pm UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/3 "2002-08-24T14:20:07Z")

</div>

I worked an effect like that out all by myself months ago 🙂  
(I was gonna put it on my homepage but…)  
Make the “menu” a movieclip and inside it put buttons

```auto
		_root.menu._x += (((_root._xmouse)*-1)-_root.menu._x)/4;

```

_menu_ is the menu-thingy you want to scroll.  
“/4” at the end is the smoothement (the higher the number, the smoother it is)  
you may want to change the “-1” to “-0.95” or sumthin’ like that like I did… cuz it didn’t move like it was supposed to…  
You may also want to put restrictions on it like I did!

```auto

If (_root.menu._x >=100) {
_root.menu._x = 100;
}
If(_root.menu._x <= 0) {
_root.menu._x = 0;
}

```

…or sumthin’ like that…  
and if ya don’t want it to be scrolling unless you put your cursor on it try this:

```auto

if((_root._ymouse <= 200) and (_root._ymouse >= 150)) {
<movement restriction-code here>
}

```

\_root.menu.\_x =  
note: if it doesn’t work or moves jerky try changing that “\_root” in front of the “menu” in the code…  
all these actions should be put in onClipEvent(enterFrame) or a 2-frame loop  
well… you got the idea… 🙂

---

<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 24, 2002, 3:58pm UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/4 "2002-08-24T15:58:44Z")

</div>

Thank you so much!!! I will try it!

---

<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 24, 2002, 7:34pm UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/5 "2002-08-24T19:34:26Z")

</div>

could you please put up an .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:** [August 25, 2002, 12:07am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/6 "2002-08-25T00:07:14Z")

</div>

I’m only a Friends of ED newbie here but I understand what the script does, unfortunately I’m still struggling with building concepts and I can’t see why this won’t scroll at all!!

I’ve got this code attached to the mc with buttons in it:

onClipEvent (enterFrame) {  
\_root.menu.\_x += (((\_root.\_xmouse)\*-1)-\_root.menu.\_x)/4;  
If(\_root.menu.\_x\>=100);  
\_root.menu.\_x = 100;  
If(\_root.menu.\_x\<=0);  
\_root.menu.\_x = 0;  
if ((\_root.\_ymouse\<=200) and (\_root.\_ymouse\>=150)) {  
}  
}

I tried dumping the ‘\_root’ path and nothing…syntax is correct, what’s missing?

Jay

---

<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 25, 2002, 2:09am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/7 "2002-08-25T02:09:44Z")

</div>

I am still trying to get mine to work with the code that was given, and I am probably doing something wrong. I can’t get mine to move at all…I will keep trying though! A flash file would be wonderful if you have one! Thanks!!

---

<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 25, 2002, 6:41am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/8 "2002-08-25T06:41:16Z")

</div>

HipSoul that code you gave is strange…  
It should be like this:

```auto

onClipEvent (enterFrame) {
**if ((_root._ymouse<=200) and (_root._ymouse>=150)) {**
_root.menu._x += (((_root._xmouse)*-1)-_root.menu._x)/4;
**if** (_root.menu._x>=100) **{**
_root.menu._x = 100;
}
**if** (_root.menu._x<=0) **{**
_root.menu._x = 0;
}
**}**
}

```

I’ve attached the fla file.

---

<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 25, 2002, 4:00pm UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/9 "2002-08-25T16:00:51Z")

</div>

IT WORKED!!! THANK YOU! THANK YOU! THANK YOU! THANK YOU!

---

<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 25, 2002, 5:17pm UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/10 "2002-08-25T17:17:58Z")

</div>

glad I could help 🙂

---

<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 26, 2002, 9:35am UTC](https://forum.kirupa.com/t/im-a-newbie-but-i-really-want-to-do-this/4900/11 "2002-08-26T09:35:56Z")

</div>

Hey Syko,

Nice work on this one. Your .fla works perfectly.  
Very handy…thanks.

Kelly
