# Asfunction question

**URL:** <https://forum.kirupa.com/t/asfunction-question/219742>\
**Category:** Uncategorized\
**Created:** [March 19, 2007, 9:46pm UTC](https://forum.kirupa.com/t/asfunction-question/219742 "2007-03-19T21:46:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HekG](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@HekG](https://forum.kirupa.com/u/HekG)\
**Post date:** [March 19, 2007, 9:46pm UTC](https://forum.kirupa.com/t/asfunction-question/219742/1 "2007-03-19T21:46:11Z")

</div>

Hello,  
I have a button which opens a gallery when clicked … this is the code:

```auto

on (release) {
    ssp.toggleGallery();
}

```

I also have a dynamic text box and I want that exact same action to be performed when the text inside the text box is clicked. This is what I have in my txt file but it’s not working, what am i doing wrong?

```auto

article=<font size="11" color='#FF0000'><a href='asfunction:ssp.toggleGallery()'>Open gallery of current projects</font></U></a>

```

Thanks
