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

Rollover and Background Issue

Status
Not open for further replies.

nismo808

Technical User
Jul 9, 2002
3
US
I used this script to try to change a WHITE text link to change to a RED upon mouse over and then back to White upon mouse out. There would be no color change when clicked. The background of the movie is black.

My problem is that instead of the text changing color the black background changes color. What am I doing wrong?

I used this script

on mouseUp
go to frame "nameoftheframe"
end

on mouseEnter me
sprite("nameofthesprite").color = rgb(204,0,0,)
end

on mouseLeave me
sprite("nameofthesprite").color = rgb(255,255,255)
end

PLEASE HELP!!!
 
to change the color of text you do this:

sprite(5).member.diffusecolor = rgb(255,255,0)

You have to change the member's text color, not the sprite. Also, DIFFUSECOLOR is the only property I could get it to work with, color or forecolor dont work, I think their sprite basec properties. Have fun.
 
You are a life saver dude! I've spent the whole night looking for answers and tried just about everything. I was just about ready to give up.

Whew. Thanks so much. It worked like a charm.

al.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top