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

text link button with mouseover state

Status
Not open for further replies.

bdog2020

Instructor
Jun 16, 2003
203
US
Hey all,
REALLY simple thing I can't get Flash to do.

I need a text link button that changes color when you mouseover it.

I created it as a button with an Up and Over state with my colors desired. I then created a Hit Area that is the whole button. BUT, when I mouse right on the text, it goes back to the Up state color, but if I'm off the text a bit but still in my hit area, I get my rollover color.

What am I missing here?

 
Why a text link within a button? That's the conflict!

Clear the url in the url box.
Give your button the instance name of msn_btn.
And on an actions layer, add the following...

Code:
msn_btn.onRelease = function(){
	getURL("[URL unfurl="true"]http://www.msn.com/",[/URL] "_blank");
};

Works fine then!

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
Hi oldnewbie,
Thanks for taking a look. My problem is only with the highlighing color of the text, not getting the click to work.

Do you see how in the top example, when you mouse RIGHT ON the text, the rollover color disappears?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top