This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2006 > how to create submenu in flash professional 8





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to create submenu in flash professional 8
minesh777in

2006-03-09, 6:23 pm

hi,i do have one assignment for create a submenu in flash 8.can any one guid me
how to create a submenu in flash 8? like in front page i do have four labels
1)home 2)wedding 3)modelling 4) product 5) profile 6) contact us...
now i want two options on weeding. if course goes on wedding then popup menu
open. i want two options in wedding
wedding
!
photo
!
video

so pls can you guid me how to do this ?

waiting for your earliest reply ...
thanks

minesh


davidcurzon

2006-03-09, 10:15 pm

I'm a noob so not sure if my advice is best not seeing as no one else has
replied i figured its better than nothing.
if i was you i would set up my home page how u want it to look. i'm going to
presusme that you only want the wedding tab to move.
on your wedding button id type
on(release, releaseoutside){
gotoandplay("weddingsub");
}

alternativly you could use the on("rolloveraction")
now create the motion tweening of your sub menu with your 2 buttons in your
moving box.
at the start of the action/motion tween lable it weddingsub now at the end of
the tween create a keyframe and put the stop(); action in.
now what should happen is when you click weddinging it will show your sub menu
dropping down.
now once you hit the stop keyframe you need to put the new action scripts in,
now the question is do you want them to open in new window or same?
if same window your photo link lets pretend the link is at
www.wedding.com/myphoto.html you would type in the actions menu of your photo
button
on(release, releaseoutside){
geturl("http://www.wedding.com/myphotos.html")
}
same thing for vid but change the url address to suit
now the main problem you have is getting back to menu if they dont want to
click photos or vids
The simplist way to do this is create a button around the drop down menu but
with no up state just a hit state.
and type in the action script
on(rollover){
gotoandplay("reversedrop");
}
now create a tween where the drop down box goes back up. and lable the start
of this as reversedrop
at the end of the reversedrop tween insert a new keyfrace on your actions
layer and isert the action
gotoandplay("home")
label 1st frame as home and that should do it
becarful not to have your action scripts over lapping your button. i norm
insert a keyframe at either side of the stop(); action on the button layer so
that that buttons actions is limited to that stop frame
hope this made sense and helped
if you still having trouble i advise you to pay for the advanced web design
tutorial from www.cartoonsmart.com it helped me a lot.
as there is another way where you save your butoon as a clip then do all the
script actions within that clips layers and create a hit state only button and
control it along that clips timeline, but a little long winded and i THINK the
above is the simplest way



davidcurzon

2006-03-09, 10:16 pm

cannot belive the made up link actully works lol. also i forgot to put the ; at the end of gotoandplay("home"); sorry
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews