Can Dynamic Text execute an AS Function?

I’ve always wanted to figure this one out. If I have a dynamic text field with HTML text or even without, can I create a link that executes a function within Flash?

I know I can create a link to itself with a variable and pass that variable through javascript and have it run, but that requires refreshing the browser. Is there a more seamless way to do it?

Thanks!