At 10:19 PM +0100 6/21/02, James Newton wrote:
>Irv Kalb <[EMAIL PROTECTED]> wrote:
>> How can you set different rgb values for different lines in a field
>> member (not a text member).
>>
>> e.g., the color of line 1 of member("foo") = rgb(100, 200, 300) --
>
>Hi Irv,
>
>the forecolor of line 1 of member "foo" = 11
>the forecolor of line 1 of member "foo" = rgb("FFCC00").paletteIndex
>the forecolor of line 1 of member "foo" = rgb("#FFCC00").paletteIndex
>the forecolor of line 1 of member "foo" = rgb(255, 204, 0).paletteIndex
>
>Cheers,
>
>James
>
Thank you James and Dale. You both came up with using the "forecolor"
and an integer as in index into the current palette. But I just
don't understand what palette I would referring to if I'm running in
16 bit or 32 bit mode. I'm afraid that I will never understand
color. I still don't get the red plus green = yellow or is it purple
or is it ... (I honestly don't know)?
But James, where did "paletteIndex" come from? I just tried it and
it works perfectly well - that's what I'll use because it allows me
to use the rgb numbers. But I don't see it documented in any
official Macromedia Lingo manual. The only place I see it is on page
30 of your book!
Thanks again,
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[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!]