Using Javascript to call an Actionscript function

Hey guys (this one’s a doozy),

I’m constructing an application that uses a Flash movie to display some products. Below it is a form with checkboxes that allows users to select certain products. What needs to happen is:

Once a user clicks the checkbox, a function that I have defined in my Actionscript needs to be executed, and it needs to pass it a couple of variables.

I have found solutions that use proxies or outside technologies (like Java and ActiveX), but the problem with these solutions is that it limits the platforms that my app can be played on.

Is there an easy way to make this link?

I am using Actionscript 3.0 for this situation.

Thanks!

-Carmire