Flash Forms Problemo

Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. THe last project that i made the website by using one swf’ file and used PHP. I made a joinFormMC and named contactForm as my instance.

This time i made a seperate swf file (not a movie clip) for the entire form but reused the previous code. When I click submit, it dosn’t want to work. Not even in the test movie mode.


stop();

// --------------------<send from LoadVars>-------------------- \\
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
    gatherForm.email_to = "[email protected]";
    gatherForm.visitor_lastname = contactForm.userLastName.text;
    gatherForm.visitor_name = contactForm.userName.text;
    gatherForm.visitor_email = contactForm.userEmail.text;
    gatherForm.visitor_origin = contactForm.userOrigin.text;
    
    if (contactForm.userFreshman.selected){
   gatherForm.visitor_freshman = true
    }
    if (contactForm.userSophomore.selected){
   gatherForm.visitor_sophomore = true 
    }
    if (contactForm.userJunior.selected){
   gatherForm.visitor_junior = true
   }
    if (contactForm.userSenior.selected){
    gatherForm.visitor_senior = true
}
    
    
    gatherForm.send("http://ksuccf.org/send.php","POST");
}
// --------------------</send from LoadVars>-------------------- \\

_global.style.setStyle("fontFamily", "Bitstream Vera Sans");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);


//--------------------<submit button AS>---------------------\\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";

 onRollOver
this.contactForm.submitBtn.onRollOver = function() {
    contactForm.submitBtn.gotoAndStop (2);
}

 onRollOut
this.contactForm.submitBtn.onRollOut = function() {
    contactForm.submitBtn.gotoAndStop (1);
}

onRelease
this.contactForm.submitBtn.onRelease = function() {
    if (contactForm.userEmail.text == "" || contactForm.userName.text == "") {
        gotoAndStop("error");
    } else {
        sendForm();
        gotoAndStop("correct");
    }
}


I saved as ISA Join just letting you know. I cannot upload because its a huge file that is beyond the max of what this system requires. (76 MB) so if someone private email me their email address so i can send my file to you.
Thank you so much.

Gabriel

anyone???

[quote=Ksuguy25;1983443]Okay i’m re using code in my current project that i’m using. I’m making a new member registration form for a website that i’m building. THe last project that i made the website by using one swf’ file and used PHP. I made a joinFormMC and named contactForm as my instance.

This time i made a seperate swf file (not a movie clip) for the entire form but reused the previous code. When I click submit, it dosn’t want to work. Not even in the test movie mode.


stop();

// --------------------<send from LoadVars>-------------------- \\
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
    gatherForm.email_to = "[email protected]";
    gatherForm.visitor_lastname = contactForm.userLastName.text;
    gatherForm.visitor_name = contactForm.userName.text;
    gatherForm.visitor_email = contactForm.userEmail.text;
    gatherForm.visitor_origin = contactForm.userOrigin.text;
    
    if (contactForm.userFreshman.selected){
   gatherForm.visitor_freshman = true
    }
    if (contactForm.userSophomore.selected){
   gatherForm.visitor_sophomore = true 
    }
    if (contactForm.userJunior.selected){
   gatherForm.visitor_junior = true
   }
    if (contactForm.userSenior.selected){
    gatherForm.visitor_senior = true
}
    
    
    gatherForm.send("http://ksuccf.org/send.php","POST");
}
// --------------------</send from LoadVars>-------------------- \\

_global.style.setStyle("fontFamily", "Bitstream Vera Sans");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);


//--------------------<submit button AS>---------------------\\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";

 onRollOver
this.contactForm.submitBtn.onRollOver = function() {
    contactForm.submitBtn.gotoAndStop (2);
}

 onRollOut
this.contactForm.submitBtn.onRollOut = function() {
    contactForm.submitBtn.gotoAndStop (1);
}

onRelease
this.contactForm.submitBtn.onRelease = function() {
    if (contactForm.userEmail.text == "" || contactForm.userName.text == "") {
        gotoAndStop("error");
    } else {
        sendForm();
        gotoAndStop("correct");
    }
}


I saved as ISA Join just letting you know. I cannot upload because its a huge file that is beyond the max of what this system requires. (76 MB) so if someone private email me their email address so i can send my file to you.
Thank you so much.

Gabriel[/quote]