este es el codigo.
Código :
//////////////////////// VARIOS REGISTROS POR VARIABLE ////////////////////////////////////////////////////
Obj2 = new LoadVars();
Obj2.load("data_varias.txt");
myTexto2.htmlText = "Cargando...";
Obj2.onLoad = function() {
titulo = Obj2.titulo.split("@@@");
descripcion = Obj2.descripcion.split("@@@");
fuente = Obj2.fuente.split("@@@");
separador = "----------------------------------------------------------";
myTexto2.htmlText = "";
for (var i = 0; i<titulo.length; i++) {
myTexto2.htmlText += "<b>"+"<u>"+titulo[i]+"</u></b><br>"+descripcion[i]+"<br><br>"+"<i>"+"Descargar: "+"<a href=\"asfunction:linkFuenteNoticias,"+fuente[i]+"\">"+"<u>"+fuente[i]+"</a></i></u>"+"<br>"+separador;
}
};
////////////////////////// AS FUNCTION ///////////////////////////////////////////////////////////////////////////////
function LinkFuenteNoticias(cual) {
getURL(cual, "_blank");
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
en el archivo .txt , como "fuente" pongo la dirección donde está el fichero ,por ejemplo "/prensa/noticia1.pdf", pero luego no sé como hacer para que la funcion en AS me tome esa dirección.
No se si me explico. Mil gracias, estoy desesperado.
gracias
