cruisecontrow
03-05-2006, 09:59 PM
Alright, I made a movieclip where you can mail me a comment using PHP. The problem I have is that I can't my movie to go to the frame where I have a success message when then mail is sent. I followed a tutorial but in the tutorial, everything is on the main timeline and not in any movieclip instances. This is the code that I'm using...
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
send_btn.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://mysite.com/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if (this.sentOk) {
this.comments_mc.gotoAndStop("success");
}
else {
this.comments_mc.gotoAndStop("failed");
}
}
I think the problem is in the "receiveLoad.onLoad = function() {" section.
The movie that I have this code in is inside of a movie, so how would I point it to the success frame?
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
send_btn.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://mysite.com/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if (this.sentOk) {
this.comments_mc.gotoAndStop("success");
}
else {
this.comments_mc.gotoAndStop("failed");
}
}
I think the problem is in the "receiveLoad.onLoad = function() {" section.
The movie that I have this code in is inside of a movie, so how would I point it to the success frame?