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!

How to Have Button Rollover Work on the Labels Too? 2

Status
Not open for further replies.

bsquared18

Technical User
Jun 10, 2001
329
US
In Flash MX 2004 Professional, I'm building buttons from scratch. I created the button object and superimposed text over the button on the same layer. Then, I selected the button object and text together and went to Modify --> Convert to Symbol --> o Button Symbol.

Then, I went inside the symbol, inserted keyframes for Up, Over, Down, and Hit. Next, I changed the button color to a brighter color for the "Over" state.

The problem is that when the button is published and the cursor goes over the text part of the button, the "Over" state change in color doesn't work and, I assume, the "Down" state wouldn't work either.

Is there a way to have a Flash button with text on it where the rollover effect occurs regardless of whether the cursor is on the button itself or on the text on the button? (I tried grouping the object and text before converting it to a symbol, and that didn't work either.)

Thanks,

Bill
 
Hmm. I don't see anything in the Properties Panel for the text that looks like what you're referring to. I'm new to Flash, so I need things spelled out a bit.

Still looking for suggestions.

Bill
 
textprops.gif


Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Thanks to both of you. When I disable the button, the effect is somewhat improved but not much. As it did before, the rollover effect works fine when the cursor is on the edge of the button (outside of the text field), but when the cursor is in the text field, the effect flickers on and off and sometimes still turns off completely.

Am I to assume that's the best I can hope for, or is there ActionScript code or some other way to obtain a smoother effect?

Thanks,

Bill
 
Just a final note. Further work with a Flash tutorial I've been working through helped me find what seems like a very simple and elegant solution. While the "Over" frame is selected, you go to Modify --> Break Apart, click once to separate the text into individual letters, and click Break Apart again to convert the text to graphics. Then, the Over effect is very smooth when you run the cursor over the button.

Thanks everyone for your input!

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top