Me manda para esta dirección:
file:///C:/xampp/htdocs/juego.swf/[[DYNAMIC]]/4.ok.html
Y quisiera que me enviase a:
file:///C:/xampp/htdocs/4.ok.html
El [[DYNAMIC]] no se de donde sale y tampoco se porque me marca juego.swf ya que lo estoy ejecutando desde un html.
Código ActionScript :
import flash.external.*;
var send_lv:LoadVars = new LoadVars();
var result_lv:LoadVars = new LoadVars();
function GetTheBaseUrl() {
var RootFullUrl = _root._url;
txtFullUrl.text = RootFullUrl;
var lastSlashIndex:Number = RootFullUrl.lastIndexOf("/");
var DriveIndex:Number = RootFullUrl.indexOf("|");
if (DriveIndex>=0) {
baseUrl = RootFullUrl.substring(0, DriveIndex);
baseUrl += ":";
} else {
baseUrl = "";
}
baseUrl += RootFullUrl.substring(DriveIndex+1, lastSlashIndex+1);
txtBaseUrl.text = baseUrl;
return baseUrl;
}
var urlBase:String= GetTheBaseUrl();
_root.fSite.text = urlBase;
result_lv.onLoad = function(success:Boolean) {
if (success) {
fResult.text = "infosend returns estatus: " + result_lv.estatus;
getURL(urlBase+"4."+result_lv.estatus+".html","_self");
} else {
fResult.text = "error connecting to server.";
getURL(urlBase+"4.err.html","_self");
}
};
stop();
Y el Boton de enviar:
Código ActionScript :
on (release) {
var sURL = "http://www.sitio.com/php/infosend.php?destino=";
sURL = sURL +_root.fDestiny.text+"&asunto="+_root.fSubject.text;
sURL = sURL +"&nombre="+_root.fName.text+"&mail="+_root.fMail.text;
trace(sURL);
_root.vURL = sURL;
_root.send_lv.sendAndLoad(sURL, _root.result_lv);
}Un saludo.
