Scroll
This tut is for how to make a scrolling menu, like I did for my landing navigation. Basically, what you’re doing is defining a box that you can drag and drop in, defining the width to the width of the buttons and height, however tall you would like it to be taken. From there, embed various buttons or movie clips and define where they should go from there.
nav_buttons_mc.addEventListener(MouseEvent.MOUSE_UP, mouseRelease);
//Variables
//Here’s where you define the rectangle
var boundArea:Rectangle=new Rectangle(33, -155, 0, 1000);
//Functions
//Here you define the drag and drop itself. The second section [nav_buttons.mc.startDrag] is binding the dragging and dropping to the area defined in the Rectangle.
function mousePress(event:MouseEvent):void {
var item:MovieClip = MovieClip(event.target);
nav_buttons_mc.startDrag(false, boundArea );
}
function mouseRelease(event:MouseEvent):void {
var item:MovieClip = MovieClip(event.target);
nav_buttons_mc.stopDrag();
}
