我被這段代碼弄得一團糟 - 似乎每次我移植這個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?
我會給它一個機會...... –