Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-Up Menu Help

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
Hi,

I have a complex Flash problem. My web site has a few buttons. when the user rolls over these buttons, a menu rolls out with more buttons. when the user rolls over these new buttons, a preview image appears. These are roll overs. When the user clicks on one of these buttons, the image stays even when the mouse rolls away. The image stays, until the user rolls over another button.

I am having trouble setting this up. This is how I did it. The initial button tells a hidden movie clip to go to frame 10 and stop when the on mouse over happens (through tell target.) In frame 10, I have the pop-up menu of additional buttons.

This sub-menu button tells its hidden movie clip to go to frame 5 and stop, when on mose over happens. In frame 5, I have a preview pix that appears. This is my roll over. The button tells the movie clip to go to frame 10 for "on mouse press." Frame 10 has the same preview pix. Then, I wrote an action script. On mouse out, if frame loaded(5), go to frame 1 and stop. (Frame one has no previe pix.) Then the action script says...on mouse out, if frame loaded(10), go to frame 15 and stop. Frame 5, 10 and 15 all have the same pix.

I had to write the action script because when on mouse press occurs, the picture doesn't stay...because flash sees the mouse rolling out...so the picture disappears.

Is this the way to set this up...because it is not working? I would appreciate any help anyone can give me on this. I'm really stuck. Thanks.

Soumya
 
Can you upload your .fla and post a link to it?
Or maybe e-mail it to me if you can't, at oldnewbie@hotmail.com

The ifFrameloaded action is deprecated in Flash 5, and can't really be used for that purpose.

Regards,
wink4.gif
ldnewbie
 
on roll over of your sub menu buttons show the roll over pic..instead do this..make your pics into a mc..ist frame blank..second frame has the pic and a stop action..on roll over of your sub menu buttons have this:

on (rollOver) {
_root.yourmc.gotoAndStop(2);
}

this brings up your roll over clip..now it stays there until your button is clicked as you wanted..now for the rest of your buttons do the same thing..only in thesebutton have them close each previously rolled over image..

on (rollOver) {
_root.1stmc.gotoAndStop(1);
_root.2ndmc.gotoAndStop(1);
_root.3rdmc.gotoAndStop(1);
}
on (rollOver) {
_root.1stmc.gotoAndStop(2);
}

and so on..closing all your previously opened mc's before rolling over to the one you want to open next..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top