Links dont work under a transparent PNG

Hello,
I’ll need some help on this:
I have a transparent png on the top layer of my movie with a link underneath the transparent part but it is not accessible anymore, here is the code:

container.addEventListener(MouseEvent.MOUSE_UP,myLink,false,0,true);

function myLink(evt:MouseEvent):void{
    trace("link's name "+evt.target.name);
}

if i remove the png then the link works.
The png is used as a border with rounded corners like a tv screen and the content shows up in the middle part.
How can I fix it?

Thanks a lot in advance.

Hey keld

is your png in your library or loaded dynamically?

If you have it in your library you could break it apart and transform it into a Movieclip. This should work.
Otherwise you could cut your png in 4 parts and arrange it on your stage, so that the middle part is empty.

hth

Carlo

Thanks Carlo,
The png is not loaded dynamically it’s already on the stage.
If I convert it as a movie clip I can’t click my links but if I leave it as an image on the stage it’s working. I’ve done this many times in AS2 and I never had such a problem.
If it has to do the the event propagation in AS3, Flash doesn’t see through transparent elements, it takes what’s underneath the mouse cursor. There must be a way to skip the first movie clip or something…

Thanks.

Convert the png to a movieclip, "png_mc"
png_mc.mouseEnabled = false;

Thanks it’s working!