Hi All,

I have a text member which has a list of multiple choice answers. When the 
user clicks on the answer the place where the
user clicked and the correct answer should change their color. I have been 
able to get the user click to change the color, but
i am unable to change the color of the Correct Answer.

Any help would be appreciated.

Ravi

-- Stripped down

on mouseValue me
  pointClicked = the mouseLoc
  currentMember = sprite(spriteNum).member
  paragraphNum = sprite(spriteNum).pointToParagraph(pointClicked)
  put paragraphNum into LineNumber
  member("Answer display").line[lineNumber].color = rgb(0,180,0)
  paragraphText = currentMember.paragraph[paragraphNum]

  if paragraphText = correctAnswer then

--Correct Answer is a variable which has the correctAnswer stored

  changeColor
  else if paragraphText <> correctAnswer then
      changeColor
  else
      pass
  end if
end

on changeColor me
--Code goes here
end


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


[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