Setting Flash (AS3) variable with Javascript -


How can I set up a Flash (ActionScript 3) variable using Javascript?
Or is it possible to call the flash function with javascript parameters?
I have tried the document.getElementById ('Flash'). Set variables ("data", "asdf"); But it only works in AS2 and AS1.