PDA

View Full Version : menu like this site! can someone help?



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?

kode
April 7th, 2003, 09:33 AM
there's a tutorial on the site :sigh:

http://www.kirupa.com/developer/flash5/slidingmenu.htm ;)

pom
April 7th, 2003, 10:32 AM
That's an outdated tute. Try to understand it and then do it your own way, it will probably be better :)