我被这段代码弄得一团糟 - 似乎每次我移植这个AS2代码的一些保留字(它的作用是使用Flash和PHP发送邮件),我得到错误如何将此代码转换为ActionScript 3.0?
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://leebrimelow.com/mailExample/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
Any idea how?
我会给它一个机会...... –