Flash AS3 Coloring Book - Movieclip only clickable in certain spots (Event Listeners)

Posted by kilrizzy on Stack Overflow See other posts from Stack Overflow or by kilrizzy
Published on 2010-03-12T12:23:31Z Indexed on 2010/03/12 12:27 UTC
Read the original article Hit count: 339

I am working on a coloring book and have a movieclip (outlines) containing many movieclips that can be changed to whatever color the user has selected. However it seems like some of the movieclips can be clicked anywhere and work great, and others you need to click a certain spot for it to color in.

I have an example here: http://jeffkilroy.com/hosted/softee/coloring.html

Notice the three sections of the icecream (top, middle, bottom). The middle is clickable from anywhere inside the movieclip, however the top and especially bottom require you to click on specific spots in order for you to activate the event listener.

Not sure if it is a depth issue because I would assume if that is the case it would activate at least a different movieclip but it just seems nothing happens at all.

Any help would be appreciated, I also have the source located here:

Source CS4

Source CS3

© Stack Overflow or respective owner

Related posts about addeventlistener

Related posts about depth