Groups | Blog | Home
all groups > flash (macromedia) > august 2003 >

flash (macromedia) : So simple it hurts..buttons on buttons


a_davidson
8/11/2003 10:50:30 PM
I'm making an interactive US map where the navigation calls for the ability to click on states (to zoom in on the state and grey everything else out) as well as individual points of interest (like cities). To preserve city position during zooms I've pretty much figured out I need to attach them to the state buttons but this is where my problem pops up.

For some reason if I manually (within FlashMX and not via actionscript..as I'd eventually like to do) attach a city button to my state movieclip (movieclip with a state-shaped-button in it so I can do the click-n-zoom), the city button stops responding to anything I do. It won't change colors for mouseover even... Yet I can see it. The buttons work fine if I add them outside of the movieclip...

Is my city button on the wrong level or something? Why can I see it yet have it not be affected by my mouse?

Any help would be greatly appreciated..




One Louder
8/11/2003 11:02:44 PM
Well, the simple fact is that you can't have buttons that are *part* of buttons - as you've seen, the "main" button grabs all of the events. You also can't have buttons on movie clips that handle certain button-like events.

You can, however, have buttons on *top* of buttons, in which case the frontmost buttons get the events.

It seems you'll have to find another way to have your city buttons move/scale correct relative to the state buttons.


a_davidson
8/11/2003 11:06:10 PM
Darn..that's too bad. But I can work around it. ;)

Thanks for the speedy response!

AddThis Social Bookmark Button