Using javascript(?) to talk to flash

Hi, I am using flash to dynamically scroll around a map, but need some links elesewhere on my page to control where the flash map scrolls to.

I can do the flash bit pretty easily, it has a massive image that we will scroll around to get to different points. But the hardest bit is that the links we want to trigger the movement are not in the flash. Can I call a javascript function on a link to trigger the movement?

thanks!