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!

Adding hyperlinks in text

Status
Not open for further replies.

luvlylittlelady

Programmer
Jan 3, 2002
5
0
0
GB
Hi

I want to add a hyperlink in some text in a director file - i dont want it to go to a web page, but take me to another part of my director file

Any ideas

Thanks
Hannah
 
You can use the PointToWord function to determine which part of some text has been clicked on.

Example:
if your text is "something something something my hyperlink something,etc.."
then in your text's behaviour script:-

on mouseUp me
if getpos([4,5],pointToWord(sprite(me.spriteNum),the mouseloc) <>0 then
go to &quot;Your Marker&quot;
end if
end mouseUp

to jump to Your Marker if the fourth or fifth words of your text are clicked on.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top