This content has been marked as final. Show 2 replies
You will need to cut out this section of the larger image. Make a copy of the png and edit it as needed. Place this new art in a sprite channel on top of the larger image sprite. Set its ink to "matte". Add a behavior as needed.
> At the moment I am learning Director. I am having a problem with trying to
> create a small section of a PNG image to use as a navigation button. The
> section i want as the button is an irregular shape.
> Any ideas on how I can overcome this problem?
Just expanding somewhat on what Rob said. As he indicated, you'll need to use
the Matte ink effect. This is the only ink effect that will allow
non-rectangular hot spots for bitmap sprites. The Matte ink makes all external
(non-enclosed) white pixels transparent. If you have a png with soft edges
(edges are anti-aliased), what you could do is have your png but then have
another copy of the image, perhaps 1 pixel or shaved off the edges and make
sure you don't have an anti-aliased edge. If you place this over your png
sprite, and choose Matte, you'll get the smooth edge from the sprite under.
Attaching your behavior to the Matte sprite will mean that it defines the
outline of the clickable / interactive area.
Director Lecturer / Consultant / Director Enthusiast