This is an archived tutorial from the kirupa.com legacy collection. It covers software that may no longer be available, but it is kept online because the ideas still hold up.
This effect is a prolongation of the draggable menu effect,
and since both effects have a lot in common, I will not
explain everything. That's why I'd recommend you to complete
the draggable menu tutorial before you start this one.
Take a look at the effect:
[
Just click on the buttons to see the effect ]
There are 2 very important things in this effect : the clip
that is going to scroll, and the buttons that clip.
Basically, this is how this effect functions : by pressing
on the buttons, you set a destination that you have
calculated with your little hands, and then the clip goes
there with Actionscript. The difference between that effect
and the draggable menu is that the destination was set by
the position of the dragger, whereas now it is set
automatically. But the idea is exactly the same.
The tutorial:

Do the same for all the numbers, so that you don't see the
scroller anymore. Save your work.
Now select any of your buttons, and open the Effect
panel, choose Alpha and set it to 0. Do the
same for all the buttons. We can now see the scroller
under the buttons.
That code sets a new destination xnew for
clipgeneral. _root.xnew =
_root.mask2._x +(4-1)*100/2; sets the destination to
the current position of mask2 plus a certain offset.
In the second button, just replace 4 by 2, and
so on (0, and then -2). If you've completed
the Dragging menu tutorial, everything is similar
from this point on. If there's something I overlook, just go
to that tutorial, you should find an explanation.
Save your work. Now save it under a new name, because I'd
like to see what we're doing here. In that copy, delete teh
mask layer. Test your movie now. When you click on
the buttons, you should see the right numbers appear. Do you
see what's happening now ?
In the
onClipEvent (enterFrame) handler, we just made so
that the clip gets to his new position little by little,
adding to its position 1/10 of the way it has to go.
In the
onClipEvent (load) handler,
we make so that when the clip loads, the 1 appears.
You can find here all the source code of that sliding menu.
This
tutorial is written by Ilyas Usal. Ilyas is also known as
ilyaslamasse
on the
kirupa.com forums!
pom
![]()
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.
Your support keeps this site going! 😇
:: Copyright KIRUPA 2026 //--