richie
April 7th, 2003, 09:27 AM
hi there, i'm trying to do a menu like this site: alanis morissette (http://www.alanismorissette.com/main.html)
this slide menu i found very hard to code...
could someone help me? i have no idea how to do,
i began to do and i was doing something like this:
well i must have 5 options in the menu, so, i did a movie clip, with the width of the option * 5, ex: each option (main, music, etc) have 550 pixels of width, so my movieclip have 2750px of width, i put one in the side of the other in sequence, the buttons are outside this menu with the site content. but the actions are driving me crazy..
i tried to do a function like this, just for test:
function moveMenu(){
do{
menu._x -= 10;
}while(menu._x > -550
}
and in a button i did this:
on(release){
moveMenu();
}
burt when i release the button, the menu only moves 10px left...
please, could someone help me out?
this slide menu i found very hard to code...
could someone help me? i have no idea how to do,
i began to do and i was doing something like this:
well i must have 5 options in the menu, so, i did a movie clip, with the width of the option * 5, ex: each option (main, music, etc) have 550 pixels of width, so my movieclip have 2750px of width, i put one in the side of the other in sequence, the buttons are outside this menu with the site content. but the actions are driving me crazy..
i tried to do a function like this, just for test:
function moveMenu(){
do{
menu._x -= 10;
}while(menu._x > -550
}
and in a button i did this:
on(release){
moveMenu();
}
burt when i release the button, the menu only moves 10px left...
please, could someone help me out?