I have a flash e-mail form but what I did is to load the variables using a movie clip. Here's the code for when you click the send button.
on (release) {
checkForm();
function validateEmail(address:String) {
// Check address length
if (address.length>=7) {
//...