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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button rollovers - simple solution?

Status
Not open for further replies.

kentara

Programmer
Apr 13, 2005
38
US
Can anybody tell me how to do this? Might be a simple answer, but I'm just not sure:

When a button named btn_1 is rolled over,
change a button named btn_2 to btn_2's rollover state

Thanks,
kentara
 
btn_2 at least has to be a movie clip holding the button's different states on different frames. When btn_1 is rolled over, the btn_2 clip is told to go to the appropriate frame.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Oldnewbie,

I experimented with your suggestion, but it's proving difficult for me to get working.

If you don't mind, allow me to reintroduce my problem:

Basically, I have a tab navigation row in my Flash movie. Each tab has a rectangle of color that I made a button out of (i.e. btn_2), then added rollover states to (that change the fill color of the rectangle). On top of each rectangle is black text that I converted to a button (i.e. btn_1), then added rollover states to (that change the text color).

When I test the movie, the rectangle changes color when I roll over it and the text changes color when I roll over it, but there is one problem: When the mouse cursor is directly over any pixel of the text, the rectangle is not in rollover state. The effect, then, of the mouse cursor sweeping across the tab is a sort of disconcerting flickering effect.

I would like to remove the flickering effect, and I thought that if I could have the rectangle color change to "over" state when the text is rolled over, it would solve the problem. It's just not working quite as I had planned......

Any ideas? I'd like to have the tab rectangle and text color change on rollover while maintaining separate, editable layers for them.

Thanks for your help!!
kentara
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top