Trigger function in flash via js function in html?

Hi guys,
I am not sure if it is possible, cant find anything in the help files about it.
I am trying to trigger a function in flash via a js function in the html page.
i am able to send to frame x,y,z and set vars etc but what i need is to trigger a function. Is this possible?