Can anyone help me with converting the following code from AS2 to AS3 ?
//Variables to handle PHP
var dataOut:LoadVars = new LoadVars();
var dataIn:LoadVars = new LoadVars();
//Run this function when Flash receives something back from PHP
dataIn.onLoad = function() {
loginBtn.enabled = true;
var responsetext = this.msgText;
var email = this.email;
status_txt.text = responsetext;
//If the username and password matches do the following
if (responsetext == “Entrance Granted!”) {
//Set global variables so these can be access across any frame
_global.emailadd = email;
_global.phoneNum = phone;
//go to the secure area.
_parent.gotoAndStop(“protected”);
}
};
I would really appreciate it!
Thank you.