I am not worried about that, I am worried about getting the text names stored into variable. Let me further specify. It is "supposed" to be set up to trace back to me the input text from the components, then store them into the loadVars object, and then I trace the loadvars object to make sure that the variables I am sending to Bluehost are as specified. Here is the actionscript:
stop();
//----------------<LoadVars>------------------\\
var myLoadVars:LoadVars = new LoadVars();
//----------------</LoadVars>------------------\\
//----------------<Bluehost>------------------\\
var sendtoemail:String = "myemail@somewhere.com";
var redirect:String = "http://www.mysite.com";
var subject:String = "Music Critique";
//----------------</Bluehost>------------------\\
this.invisible_Btn.onRelease = function () {
gotoAndPlay(main);
}
//----------------<Submit Button>------------------\\
this.contactForm.submit_btn.onRelease = function () {
trace("Button is working");
if (this.contactForm.name_txt.text == "" || this.contactForm.email_txt == "") {
gotoAndPlay(error);//----this little bit isn't working either---\\
}
myLoadVars.Name = this.contactForm.name_txt.text;
myLoadVars.Email = this.contactForm.email_txt.text;
myLoadVars.Comments = this.contactForm.comments_txt.text;
myLoadVars.Address = this.contactForm.track_cb.selectedData;
trace(myLoadVars);
gotoAndPlay(sent);
}
This is the output panel:
Button is working
Address=undefined&Comments=undefined&Email=undefined&Name=undefined
I can see the button was clicked, and that the loadVars is displaying it's UNDEFINED! #$%$# variables
They should not be undefined....This is not making any sense to me.