How do you convert this to ActionScript 3.0?

I’m stumped with this code - it seems that every time I port some of the reserved words of this AS2 code (what it does is to
send mail using both Flash and PHP), I’m getting errors…


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;

receiveLoad.onLoad = function() {
if(this.sentOk) {
else {

Any idea how?

in actionscript 3 you don’t use SendVars and LoadVars, you use URLLoader

check out the following for some examples:

Will check it out - thanks for the tip :slight_smile: