macromedia.director.basics
[Top] [All Lists]

Re: help please!

Subject: Re: help please!
From: Dean Utian <d.utian@xxxxxxxxxxx>
Date: Thu, 17 Jan 2008 01:50:40 +1100
Newsgroups: macromedia.director.basics

olivercraigdesign wrote:

> 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?

Hi Oliver,

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.

regards
Dean

Director Lecturer / Consultant / Director Enthusiast
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au
email: d.utian@xxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>