# Insert link in movieclip

**URL:** <https://forum.kirupa.com/t/insert-link-in-movieclip/281928>\
**Category:** flash\
**Created:** [February 15, 2009, 2:44pm UTC](https://forum.kirupa.com/t/insert-link-in-movieclip/281928 "2009-02-15T14:44:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeux](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zeux](https://forum.kirupa.com/u/zeux)\
**Post date:** [February 15, 2009, 2:44pm UTC](https://forum.kirupa.com/t/insert-link-in-movieclip/281928/1 "2009-02-15T14:44:29Z")

</div>

Hi all

I want to parse an xml to read some link to images and the link that should point to.

Im using actionscript 2 and I have parsed correctly the xml and i have put the correct image in the stage as a new movieclip, but i cant get the event “onRelease” working with the movieclip.

How i can do that ?

I have that in the code:

\_root.galeria[“mc”+i].createEmptyMovieClip(“logot”,30);  
\_root.galeria[“mc”+i].logot.loadMovie(‘link to the image’);  
\_root.galeria[“mc”+i].logot.onRelease = test;

function test(){  
trace(“test”);  
}

The image appears in the stage but the onRelease function doesnt work

Sorry for my bad english.

Thanks in advice.
