maybe you try to do wrong thing?
assuming a bitmap of a state, outlined and labelled in black, with a
white background, in some sprite channel
on beginSprite me
sprite(me.spriteNum).bgcolor = rgb( 0, 255, 0 )
end beginSprite
will cause the state to be green, while
on mouseUp me
sprite(me.spriteNum).bgcolor = rgb( 255, 0, 0 )
end mouseUp
will certainly turn the state red.
one could use paletteIndex( 135 ) to turn the state green, if the value
of that index was rgb( 0, 255, 0 ), but don't count on it being so,
unless using custom palette. one custom palette for all 50 states, not
50 custom palettes
HTH
joe
[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!]