Calling a Function inside a Flash Movie via JS

I need to call a function inside a Flash Movie via JS (to update a textfield and sum Vars) can someone point me in the right direction???

I tried to figure out the external interface api, but i dont understand how it really works …

For example:

JS calls function “Fieldupdate” and in the Flash Movie the Fields and Vars Updates

thanx in advance

ChromeD