Actionscript & Javascript - triggering a dynamic menu from flash

Hello alll,

I have a dynamic menu that I wish to be triggered by a flash button.

The original graphic file had the following link on it:

<A onmouseover=navOn(1); onmouseout=navOff(1); href=“link.html”>

I wish to replace the graphic button with a flash one.
I have tried this but it does not work:

on (rollOver)
on (rollOut) {
on (release)

Please help, I am not sure how to write this function in Actionscript.

Many thanks!