Hello everyone.

I got a field sprite on the stage that I want the lines to be highlighted
while the mouse is within the sprite.  I'm using hilite() command.  When I
reached the last line of the field,
it highlights the whole line instead of just the words.  Is there a
workaround for this?   Below is the behavior I'm using.


-- <start of script> --
property Mbr, lastLine

on beginSprite me
  Mbr = sprite(me.spriteNum).member
  lastLine = Mbr.line.count
end

on mouseWithin me
  if the mouseLine <> lastLine then
    Mbr.line[the mouseLine].hilite()
  else Mbr.word[the mouseWord].hilite()
  end if
end

on mouseLeave me
  Mbr.line[lastLine + 1].hilite()
end
--</end of script>


Using D8, Win98SE.


Thanks in advance.

John Erazo




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to