To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-07-2009, 12:59 AM   #1
cleantable
Member
 
Join Date: Aug 2008
Posts: 54
email form help!!!

my error message in flash ide:

1061: Call to a possibly undefined method indexOf through a reference with static type flash.text:TextField.

my flash code:

submit_btn.addEventListener(MouseEvent.CLICK, sendData);



function sendData(evtObj:MouseEvent): void {

if (!email_txt.length || email_txt.indexOf("@") == -1 || email_txt.indexOf(".") == -1) {

results.text = "Please check your e-mail address.";

} else if (!message_txt.length) {

results.text = "Please enter your comments.";

} else if (!name_txt.length) {

results.text = "Please enter your name.";

} else {

//loadVariablesNum ("http://yoursite.com/mailform.php", 0, "GET");

trace(name_txt.text);
trace(email_txt.text);
trace(message_txt.text);

results.text = "Sending Data...";

}

}
cleantable is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:45 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.