Call flash function from Javascript?

I have sme flash functions that I want to call from HTML buttons. Can someone please help me with what I need to write in javascript to call tese functions.

I have been sucessfull in changing flash variable values from javascript. now I just want to call a flash function.