Insert link in movieclip

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.