# Links dont work under a transparent PNG

**URL:** https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216
**Category:** flash
**Created:** [June 4, 2008, 6:48am UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216 "2008-06-04T06:48:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![keld](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@keld](https://forum.kirupa.com/u/keld)
#### Post date: [June 4, 2008, 6:48am UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216/1 "2008-06-04T06:48:42Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

### Author: ![hasch2o](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hasch2o](https://forum.kirupa.com/u/hasch2o)
#### Post date: [June 4, 2008, 6:59am UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216/2 "2008-06-04T06:59:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![keld](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@keld](https://forum.kirupa.com/u/keld)
#### Post date: [June 4, 2008, 7:46am UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216/3 "2008-06-04T07:46:46Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)
#### Post date: [June 4, 2008, 7:48am UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216/4 "2008-06-04T07:48:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![keld](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@keld](https://forum.kirupa.com/u/keld)
#### Post date: [June 4, 2008, 6:00pm UTC](https://forum.kirupa.com/t/links-dont-work-under-a-transparent-png/262216/5 "2008-06-04T18:00:02Z")

</div>

Thanks it’s working!
