One option would be to cut up your map in Photoshop into the different
pieces, so that each layer is a different "hotspot".  This will look the
best when pieced back together if you make sure that your pieces don't have
antialiased edges; i.e. make sure you cut them apart along pixel edges.
Then open your photoshop document in Fireworks MX (previous versions might
do this too, I'm not sure), and export it for Director.  You'll have to
check an option to make sure each item is exported to a separate image,
otherwise it will export each layer (with multiple items inside) as an image
(a Fireworks layer is analagous to a Photoshop folder).  Then when you
export it, each item will be in a separate PNG with alpha channel.  Then
simply import the pieces into Director and piece them back together on the
stage.

Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29


----- Original Message -----
From: "Kurt Griffin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 11:32 AM
Subject: Re: <lingo-l> Irregular shape of rollover 2


> I want to create a sprite which will response (more or less like html
> image map).

A while back I needed to do this kind of thing for a map of the U.S., where
rolling over a state triggered a variety of actions. I ended up having two
map graphics as cast members, both the same size. The pretty one was
displayed on stage, and the other was used only for rollover tests. In
photoshop, I created the second map by filling each state with a unique
solid RGB color (avoid antialiasing). By mapping the mouseloc on the
"staged" image to the offstage map image and testing with getpixel(), I
could check against a prop list of names (props) and rgb values (values),
and return a name for a specific colored area. Once I had a name, I could do
whatever I needed with the info.

This is a bit work intensive, however (when compared to using invisible
rects, for example), and I only use it when I need a relatively high degree
of accuracy in the rollovers.

hth,
Kurt

[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!]

[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!]

Reply via email to