Mark J did a great job of answering, but _just_ in case you didn't follow
here's a quick and less educational reply, based on what I can see was
obviously your confusion:

The error is not complaining about your 156. It's complaining about the
variable 'me'
Lingo is expecting to find a sprite number (spritenum), 'me' however is a
memory reference: a section of memory containg every bit of info about that
particular sprite (as explained by mark).
By writing 'me.spritenum' you are indicating a specific data item contained
in this memory section.
Which just happens to be an integer :-)

thus the correct lingo:

on mouseUp me
   set the foreColor of sprite(me.spritenum) = 156
end

or even nicer:

on mouseUp me
   sprite(me.spritenum).foreColor = 156
end

Rich




[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