Código :
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("http://reportajes.onplus.es/reportajes.aspx?txtTarjeta=" + numero.text);
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
errorimagen.visible=false;
stage.focus = numero;
//method to submit form
SubmitBtn.addEventListener(MouseEvent.CLICK, sendActions);
//function called from method, contains validation logic and var data to be sent to form
function sendActions(event:MouseEvent):void{
//conditional logic to validate form fields
if(numero.length == "") {
errorimagen.visible = true;
} else {
//sends the text box variables to email.php by calling the varSend method
variables.numero = numero.text;
varLoader.load(varSend);
trace("Form validated");
}
}NO funciona... como lo hago??? GRACIAS!
