We help IT Professionals succeed at work.

Adding click event to a dynamically added LinkButton

I'm dynamically adding a LinkButton to an Accordian with Action Script. I need to add a click handler to the LinkButton to fire off an event. Can't seem to figure out how to add in ActionScript. Any help is appreciated. Thanks.
Watch Question

You can use the normal addEventListener function

linkButton.addEventListener(MouseEvent.CLICK, clickEventHandler);