Thanks very much Neil and Rui,
Both your solutions work. Fibonacci and I thank you :D
--i did figure it out while waiting for the digest to arrive
--in my inbox (2 days), but thank you both for your help
Justin
> >Can you give me some indication of what i am doing wrong?
> >on mouseUp me
> > hexN = "FF0000" --same hex value as above
>
>The next 2 lines aren't needed
> > --hexNumWsharp = "#" & hexN --adds sharp
> >-- hexWquotes = QUOTE & hexNumWsharp & QUOTE --adds quotes
>
>
>Change the next line to be
> > sprite(1).color = rgb(hexN) --returns the sprite color to black
>
>updateStage is not needed
> >-- updateStage --what am I missing?
> >
> >end
>
>You should now have this
>on mouseDown me
> sprite(1).color = rgb("#FF0000")
>end
>
>on mouseUp me
> hexN = "000000" -- black
> sprite(1).color = rgb(hexN) --returns the sprite color to black
>end
>
>That should do it for you.
>...Neil
>
>>
>Message: 4
>Subject: Re: <lingo-l> setting the hexadecimal string value of a color with
>a
> variable
>To: [EMAIL PROTECTED]
>From: [EMAIL PROTECTED]
>you don't want to add the quotes, they are just the string delimiter...
>
> Rui Dantas
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]