# Moving a movieclip up and down

**URL:** https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282
**Category:** flash
**Created:** [November 17, 2002, 3:15pm UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282 "2002-11-17T15:15:55Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![soulty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/soulty/32/105_2.png) [@soulty](https://forum.kirupa.com/u/soulty)
#### Post date: [November 17, 2002, 3:15pm UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/1 "2002-11-17T15:15:55Z")

</div>

Hey everyone , hope you can help me , iam trying to figure out how to make the scroll/list menu in 2advanced’s portfolio section, it can be found here [http://www.2advanced.com/flashindex.htm](http://www.2advanced.com/flashindex.htm)

I kinda had a idea on how to make it , by using a mask and movie clip which holds the buttons, and then just use the up and down buttons to move the movie clip up and down, but dnt really know how to really do this.

basically want to know how to move a Movie clip up and down when a up or down button is pressed with restriction to how much i can move it up and down,

or if you know any other way this menu is done plz tell me

Any help will be much appreciated, thanx

---

<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: [November 17, 2002, 3:25pm UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/2 "2002-11-17T15:25:56Z")

</div>

Oh by the way, iam using Flash Mx

---

<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: [November 17, 2002, 8:11pm UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/3 "2002-11-17T20:11:37Z")

</div>

I’m not exactly sure how 2advanced made their portfolio scroller, but I use something similar to what you thought of. I used a mask and buttons that scroll a movieclip. I’ve attached a fla file so you can experiment with. It’s scrolling text right now, but you can put whatever you want inside the movieclip. I hope it helps. =)

---

<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: [November 18, 2002, 2:07am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/4 "2002-11-18T02:07:50Z")

</div>

Thanx mate, thats what i was kinda looking for.

One problem though, when i swap a Mc with the type you have,

(the Mc is holding graphics which represents buttons) so when i swap them the buttons are moving the Movieclip way to fast up and down, any way to slow them down?

thanx again for the 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: [November 18, 2002, 2:46am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/5 "2002-11-18T02:46:23Z")

</div>

Well I’m pretty sure theres an AS for slowing it down, but since the buttons are playing an MC, you could extend the scroll MC timeline and that should slow it down. The fla I put up has a frame rate of 24 so thats why its fast. If your actual movie has a slower frame rate then the scrolling should be slower. I’m still new to actionscripting so I can’t come up with any fancy AS 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: [November 18, 2002, 2:58am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/6 "2002-11-18T02:58:08Z")

</div>

I didnt even think to look there, lol, Got so much work on now, going a bit crazy!. i put down the fps. back to 15 ,

all good,  
except is it possible to make the buttons only move the mc a bit, not as a tween , now only when u take your mouse off the button it stops or if it reaches the end, i would like to have it so when u press the buttons once you move it a bit up , i have changed the up button to

on (release) {  
upaction.gotoAndPlay(“up”);  
}  
on (rollOut) {  
upaction.gotoAndStop(“stop”);  
}

---

<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: [November 18, 2002, 3:23am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/7 "2002-11-18T03:23:09Z")

</div>

I figured it out, i put a whole row of stop actions on top of the tween, and works fine, much like 2 advanced one 😉

well not really but good enough, ill probably work on it more as soon as i can find some better methods,

thanx alot for your help electrongeek , by the way, Ninjai is killar , been watching that since epsiode 1, number 10 took too long to come out, but yeah awesome animtion in that, and yeah your site is pretty nice.

thanx again.

---

<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: [November 18, 2002, 3:36am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/8 "2002-11-18T03:36:36Z")

</div>

I tweaked the original fla above to do what you wanted. I went in and placed some stop actions inside the scroll MC and I also went into the upactions MC and replaced this line of code:

```php
{_parent.scroll.prevFrame();
}
gotoAndPlay("up");

```

with this line of code:

```php
{_parent.scroll.prevFrame();
}
gotoAndStop("up");

```

So that it doesn’t scroll all the way back down when you press the button.

I hope that helps. =)

---

<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: [November 18, 2002, 3:39am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/9 "2002-11-18T03:39:05Z")

</div>

Here’s the new fla, heh i forgot 😛

Yup I can’t wait till the next episode of Ninjai comes out.

---

<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: [November 18, 2002, 4:26am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/10 "2002-11-18T04:26:14Z")

</div>

Here my fla, Its working ok i guess, still only going one frame back when you press up , but i think thats to do with the scattered stop actions on the tween, tell me what you think, what i can do to fix it, improve it, again all credit goes to electrongeek for the code.

---

<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: [November 18, 2002, 4:51am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/11 "2002-11-18T04:51:01Z")

</div>

Your fla was almost perfect except it didn’t scroll down all the way on some of your buttons. I went ahead and fixed it for you. I added some more frames to the upaction movieclip and placed:

```php
_parent.scroll.prevFrame();

```

into the frames so that it scrolls a little bit more than it does before. It should work exactly how you wanted it to. =)

---

<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: [November 18, 2002, 4:57am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/12 "2002-11-18T04:57:01Z")

</div>

Awesome mate , much appreciated, works great now, has the tween both ways, exactly what i wanted.

Thanks for your 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: [November 18, 2002, 4:59am UTC](https://forum.kirupa.com/t/moving-a-movieclip-up-and-down/8282/13 "2002-11-18T04:59:59Z")

</div>

Glad to be of service. =)
