Trailer : Adobe flash cs4 website tutorial: 0107 Drop down menu








addEventListener(Event.ENTER_FRAME,dropmenu);
pages.stop();
var speed:Number=.3;
function dropmenu(e:Event) {
if ((menu.mouseY0) && (menu.mouseX0)) {

menu.y-=(menu.y)*speed;

} else {

menu.y-=(260+menu.y)*speed;

}

}

function makebtn(btn:SimpleButton,frame:Number) {

}

btn.addEventListener(MouseEvent.CLICK,function(){pages.gotoAndStop(frame);});

};

makebtn(menu.c_btn,3);

makebtn(menu.d_btn,2);

makebtn(menu.h_btn,1);

Blog Archive