if member(sprite(me.spriteNum).member).word[the mouseWord] contains "www" then
sprite(me.spriteNum).cursor = 280
w = the mouseWord
set the textStyle of word the mouseWord of member the name of the member of sprite(the spriteNum of me) to "underline"
set the foreColor of word w of member the name of the member of sprite(the spriteNum of me) to 3
else
set the textStyle of word w of member the name of the member of sprite(the spriteNum of me) to "plain"
set the foreColor of word w of member the name of the member of sprite(the spriteNum of me) to 255
w = 0
sprite(me.spriteNum).cursor = 284
end if
end if
end
on mouseLeave me
set the textStyle of word w of member the name of the member of sprite(the spriteNum of me) to "plain"
set the foreColor of word w of member the name of the member of sprite(the spriteNum of me) to 255
w = 0
cursor(-1)
end
on mouseDown me
if member(sprite(me.spriteNum).member).word[the mouseWord] contains "www" then
if chars(word the mouseWord of the text of member the member of sprite(the spriteNum of me), 1, 1) = "(" then
link = chars(word the mouseWord of the text of member the member of sprite(the spriteNum of me), 2, the number of chars in word the mouseWord of the text of member the member of sprite(the spriteNum of me))
else
link = word the mouseWord of the text of member the member of sprite(the spriteNum of me)
end if
if chars(link, the number of chars in link, the number of chars in link) = ")" then
link = chars(link, 1, the number of chars in link - 1)
else
if chars(link, the number of chars in link, the number of chars in link) = "." then
link = chars(link, 1, the number of chars in link - 1)
else
end if
end if
if not (member(sprite(me.spriteNum).member).word[the mouseWord] contains "http") then