PDA

View Full Version : button within a button


jp7
09-30-2006, 07:33 AM
hey.. im making a flash website and i have popdown menus with links on them. (the "popdown" is a framebyframe animation) that uses .. " on (rollOver) {gotoAndPlay()} "

the problem is, the popdown menu is one big button, that "bounces down" on rollOver and stays "down" until the user rolls off it. when the user rolls off, the menu goes back up.

this means that any buttons (links) within the popdown menu cannot register, as they are buttons within a button.

if i arrange the links to be "above" the popdown menu it means that any time the user rolls over the links its rolling off the popdown menu, and the menu goes back up.

i dont know if there is an easy way around this. or i need some kind of programming to see the popdown menu as coordinates ?

please help as this is a major school assignment that i really need to hand in

kennard
10-02-2006, 02:00 AM
Instead of having one big button over your menu watching for "onRollOut", put a "donut" shaped button around your menu. So that there is almost a "ring" surrounding it, give this ring an "onRollOver" function.

This lets you check if the user is not within the menu, and leaves the buttons in your menu uncovered.