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

rollover states

Status
Not open for further replies.

moragreid

Technical User
Aug 31, 2005
1
GB
i have a number of buttons on the stage and on rollover they change colour and also a bit of text appears in another location on the stage. Is there a way of using scripting to change this bit of text?

i tried:

on mouseEnter me
sprite("dummy").member="new"
end

dummy being a placeholder for the text and new being the name of the cast member to change to
 
Instead of changing the member, you may want to change the text of the text member:
[tt]--
on mouseEnter me
member("Text").text = "Whatever the text you want"
end mouseEnter

on mouseLeave me
member("Text").text = ""
end mouseLeave
--[/tt]

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top