hi list -- 
i am trying to set a text cast member with multiple lines to be able to
change the line color on mouseEnter and set the default on mouseLeave based
on line number. here is my code. (my syntax is probably screwy i am just
learning and sometimes the way dir wants code is kind of strange). thanks
--carol

property lineNum, lineText

on mouseDown me
  pointClicked = the mouseLoc
  currentMember = sprite(me.spriteNum).member
  lineNum = sprite(me.spriteNum).pointToLine(pointClicked)
  lineText = currentMember.line[lineNum]
  go marker(lineText)
  return lineNum
end

on mouseEnter me
  pointOver = the mouseLoc
  currentMember = sprite(me.spriteNum).member
  lineNum = sprite(me.spriteNum).pointToLine(pointOver)
  lineText = currentMember.line[lineNum]
  member(me.spriteNum).line[lineNum].foreColor = 27
  return lineNum
end

on mouseLeave me
  if me <> lineNum then
    put lineNum
    member(me.spriteNum).line[lineNum].foreColor = 255
  else
  end if
end


[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