Giving a hyperlink to an animation

Hi,can anyone please help me?
How can I add a hyperlink to an animation and then export the swf file to Dreamweaver,without losing the animation?
When I give the same settings to the animation as when using a button(inserting actionscript code),the animation does’nt work anymore.
It’s for creating banners.
Many thanks for the help.