JavaScript --> Unity Flash Build

Hi, i am sorry about my title i did not know what to put, here is the question, how do i send a function from JavaScript to Unity Flash player build?

Thanks

Heres the docs for webplayer. I dont know if its the same API when you’re doing a flash build

https://docs.unity3d.com/Documentation/Manual/UnityWebPlayerandbrowsercommunication.html

Edit: found some docs for Flash → unity communication too

https://docs.unity3d.com/Documentation/Manual/flash-gettingstarted.html