Getting Return values when calling JavaScript Functions from ActionScript / Flash
I added a page to the Flash / JavaScript Integration Kit project documents that shows how to get return values from JavaScript when calling JavaScript functions from Flash.
The same technique works when calling Flash function from JavaScript, by just reversing the code.
You can view the code / example here.
You can find out more about the Flash / JavaScript Integration Kit here.