Sending values from flash to a html FORM

Hi guys! how i can create a button in a html form wich will open a flash in a new window or the same and then the flash will sending the values to the html form fields! Please help me…