# onRelease problem

**URL:** <https://forum.kirupa.com/t/onrelease-problem/298462>\
**Category:** Uncategorized\
**Created:** [October 19, 2009, 3:59pm UTC](https://forum.kirupa.com/t/onrelease-problem/298462 "2009-10-19T15:59:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdcsurf](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tdcsurf](https://forum.kirupa.com/u/tdcsurf)\
**Post date:** [October 19, 2009, 3:59pm UTC](https://forum.kirupa.com/t/onrelease-problem/298462/1 "2009-10-19T15:59:09Z")

</div>

So, I have this bit of code

```auto
            var ImgLink = myGallery[catNum]["image"]*["link"];
            trace(myGallery[catNum]["image"]*["link"]);

```

When I trace this, it gives me the correct URL

But, for some reason… I don’t understand how to pass this bit (what’s being traced) to the on release function

```auto
url_btn.onRelease = function(){
getURL(?????????);
}

```

Can someone please tell me how to call this?
