Teo Petralia <[EMAIL PROTECTED]> wrote: > I have created a 32 bitmap graphic with Photoshop with color yellow > then I have created an Alpha channel that I made white always with > Photoshop then I have imported it inside Director and placed on the > following sprite channel of the text member but it's only covering it > and doesn't became transparent.
Hi Teo, By default, Director considers that the alpha channel data in a Bitmap member should be ignored. You need to use ... bitmapMember.useAlpha = TRUE ... in order to get Director to pay attention to the alpha channel. My behavior takes care of all this: you simply define the highlight colour in the beginSprite() handler, and all the rest works automatically: tHilite.fill(tHilite.rect, rgb(255, 255, 0)) -- Yellow hilite The bitmap member in the next channel need only have a 1x1 1-bit image; the behavior will reset the size, depth and colour of the image as appropriate. Cheers, James [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!]