Flash script help!
- Started
- Last post
- 9 Responses
- zerofour
I got a problem on this script...
k = new Object();
k.onKeyUp = function() {
if (Semail.text != '') {
sendMC.sendButton.enabled = true;
lvOut = new LoadVars();
loadVariablesNum ("sendmail.php", 0, "Post");
} else {sendMC.sendButton.enabled = false;
}
};
Key.addListener(k);sendMC.sendButton.enabled = false;
stop();
- fusionpixel0
I got a problem on this script...
k = new Object();
k.onKeyUp = function() {
if (Semail.text != '') {
sendMC.sendButto n.enabled = true;
lvOut = new LoadVars();
loadVariablesNum ("sendmail.php", 0, "Post");
} else {sendMC.sendButton. enabled = false;
}
};
Key.addListener(k);sendMC.sendButton.en abled = false;
stop();
- imakedesign0
should it be !== ""
- fusionpixel0
k = new Object();
k.onKeyUp = function() {
if (Semail.text != null) {
sendMC.sendButton.enabled = true;
lvOut = new LoadVars();
loadVariablesNum ("sendmail.php", 0, "Post");
} else {sendMC.sendButton. enabled = false;
}
};
Key.addListener(k);sendMC.sendButton.enabled = false;
stop();
- monNom0
yes.
some background might help... is ANYTHING working? or just one part? what's it' supposed to do.
if (Semail.text != '')
I think that's your problem.
- monNom0
I doubt it matters, but you've got a semicolon terminating a curly brace at the end of your function...
- zerofour0
erm there is a few more script but it seems like the everytime i key in a text there will be a reply...
- spiralstarez0
yeah I think fusion nailed this for you but
if (Semail.text != '')
is null as fusion said,
or I always wrote it like this:if (Semail.text != ''")
- zerofour0
anyone can help me
Msn ?thanks in advance
- zerofour0
Thanks for the null part... Yeah solve 1 problem now the 2nd problem
on (release) {
// Now import the variables we
// need to send in this movie clip
sender_mail = _root.Semail.text;
// all the vars we just imported
// will be sent via POST method now
loadVariables("sendmail.php", this, "POST");
// and when receives the answer from
// the server...
this.onData = function() {
for (var a in this) {
trace([a, this[a]]);
}
// ok, next frame
_root.nextFrame();
if (this.output == 'sent') {
// in case of success
_root.errType = "You are subscribed.";
} else {
// else
_root.errType = "Error.";
}
};
}