Mike...
I think you can get the same effect of what you are doing without having to 
do a look-up each time by using the getPropertyDescriptionList and entering 
the name and capital of each state on each sprite. I haven't included the 
highlighting code with the stuff below. It only has an 'easier' way to 
display your rollover text. Watch for line breaks in the email. Hope this 
helps. Have fun. :)

...Neil

(Untested lingo follows)
--Author Defined RollOver Text
property pStateName
property pStateCapital

-- Text Fields
property pStateField
property pCapitalField

-- constants
property pDefaultState
property pDefaultCapital

--------------------
--------------------

on beginSprite me

   pDefaultState = "State Name"
   pDefaultCapital = "Capital Name"

   pStateField = member(pStateField)
   pCapitalField = member(pCapitalField)

end beginSprite

--------------------
--------------------

on mouseEnter me
   pStateField.text = pStateName
   pCapitalField.text = pStateCapital

end mouseEnter

--------------------
--------------------

on mouseLeave me
   pStateField.text = pDefaultState
   pCapitalField.text = pDefaultCapital

end mouseLeave

--------------------
--------------------

on getPropertyDescriptionList me
   stateList = ["Alaska", "Washington", "New York"]
   GPDL = [:]

   GPDL[#pStateName] = [#comment: "Which State Am I", #format:#string, 
#default: stateList[1], #range: stateList]
   GPDL[#pStateCapital] = [#comment: "State Capital:", #format:#string, 
#default: "Enter State Capital"]

   GPDL[#pStateField] = [#comment: "Text member for State Name:", 
#format:#text, #default:""]
   GPDL[#pCapitalField] = [#comment: "Text member for Capital Name:", 
#format:#text, #default:""]
   return GPDL
end getPropertyDescriptionList


[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