stop();
enlaces = new XML();
enlaces.ignoreWhite = true;
ejemploTexto ="";
enlaces.onLoad = function() {
totalxml = enlaces.getBytesTotal();
cargadoxml = enlaces.getBytesLoaded();
porcentajexml = Math.round((cargadoxml/totalxml)*100);
if (porcentajexml>=100) {
removeMovieClip(cargando);
notis_puerto = new Array();
titulo = new Array();
urls = new Array();
long = enlaces.firstChild.childNodes.length;
for (i=0; i<long; i++) {
ejemploTexto += "<p class='tit'>"+enlaces.firstChild.childNodes[i].attributes.titulo+"</p><br>";
ejemploTexto += "<p class='txt'>"+enlaces.firstChild.childNodes[i].firstChild+"</p><br>";
if (enlaces.firstChild.childNodes[i].attributes.urls<>"") {
ejemploTexto += "<p class='txt'><a href='http://"+enlaces.firstChild.childNodes[i].attributes.urls+"' target='_blank'>Abrir Página</a></p><br><br>";
} else {
ejemploTexto += "<br>";
}
}
}
cargaCSS ();
};
attachMovie("carga_xml","cargando",2);
cargando._x = 45;
cargando._y = 94;
enlaces.load("enlaces.xml");
attachMovie("pestana","pestanita",2000);
pestanita._x = 0;
pestanita._y = 0;
function cargaCSS() {
mi_texto.html = true;
oferta.html = true;
curriculum.html = true;
politica.html = true;
var myCSS = new TextField.StyleSheet();
var cssURL = "noticias.css";
myCSS.load(cssURL);
myCSS.onLoad = function(exito) {
if (exito) {
mi_texto.html = true;
mi_texto.styleSheet = myCSS;
mi_texto.text = ejemploTexto;
}
}
};