Event Click On MovieClips Mask (Non Transparent Area)

I'm working with Flash CS6 to create MovieClips that I want to use in my AS3 project using Linked Classes, I'm trying to detect when the mouse is clicking the MovieClip, but the event is fired also when I click the transparent area of the PNG image used to create the MovieClip, and I want to fire the event only when I click the non transparent area of the Movieclip (the mask), is there any work around I can do in Flash CS5 or with AS3 code !

Upvotes: 0

Views: 171

Answers (1)

Andrey Popov
Andrey Popov

Reputation: 7510

You should add an instance name to the mask (which means it must be a symbol), and then add listener directly on the mask, not on the whole movie clip.

Another solution is to set mouseEnabled and mouseChildren to false on that bitmap, and leave only the area you wish to be clickable.

Upvotes: 1

Related Questions