Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Variable Question


YuccaWeb
2/21/2004 7:56:30 PM
Variable Question i am trying to make a mail list subscribe form. This is the
code I currently have for the submitForm() code:


function submitForm () {
sender.email = email_txt.text;
sender.name = sender_txt.text;
sender.pw = pw_txt.text;
sender.pw-conf = pw-conf_txt.text;
sender.digest = 0;

("http://mail.myeyesfail.com/mailman/subscribe/myeyesfailnews_myeyesfail.com","n
ewWindow", "post");
}

this should work, but I am getting a variable error on the line of:

sender.pw-conf

the error is as such:
Left side of assignment operator must be variable or property.
sender.pw-conf = pw-conf_txt.text;

is a dash (-) invalid for variables? With the script I am working with, I need
that variable to have a dash inside of it.

Thanks

- Webservant
NSurveyor
2/21/2004 8:00:42 PM
NSurveyor
2/21/2004 8:01:10 PM
In action script - means subtract. Maybe if you put the variables name in quotes, like from
YuccaWeb
2/22/2004 5:38:48 PM
I tried that before, and it comes up with an error,

sender.'pw-conf' = pw_txt.text

comes up with this error,

Symbol=MailList, Layer=actions, Frame=1: Line 9: Expected a field name after
'.' operator.


dk_says_hey
2/22/2004 6:59:23 PM
try:
AddThis Social Bookmark Button