Asfunction question

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


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?


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

Thanks