Conejo,
sigo leyendo muuuchos posts en la busqueda que hablan del XML + CALENDARIO. Estoy empezando con el tema XML justo con el calendario y no se exactamente donde cargar o llamar el XML (le he llamado eventos.xml)
Código :
_lockroot = true;
c = new XML();
c.ignoreWhite = true;
System.useCodepage = true;
c.onLoad = function() {
delete br.onEnterFrame;
br.removeMovieClip();
dias_activos = new Array();//["14/5/2004","30/6/2004","15/7/2004","30/7/2004"];
acciones = new Array();//["ir a la playa","comer chino","comprar coche","visitar padres"];
idblog = new Array();
trace("hiE");
for(q=0;q<c.firstChild.childNodes.length;q++) {
upToArray = new Array();
toTheArray = new Array();
upToArray = c.firstChild.childNodes[q].attributes.f.split(" ");
toTheArray = upToArray[0].split("-");
dm = toTheArray[2]+"/"+toTheArray[1]+"/"+toTheArray[0];
dias_activos.push(dm);
acciones.push(c.firstChild.childNodes[q].attributes.t);
idblog.push(c.firstChild.childNodes[q].attributes.id);
delete toTheArray;
delete upToArray;
delete dm;
trace(dias_activos);
};
gotoAndStop(2);
};
br.onEnterFrame = function(){
if(_root.getBytesLoaded()==_root.getBytesTotal()) {
onxm=1;
c.load("calendar2.php?not="+Math.random());
dum.text = "Cargando XML";
delete this.onEnterFrame;
trace("jajajajaj");
} else {
br._xscale = Math.round(100*_root.getBytesLoaded()/_root.getBytesTotal());
};
if(onxm==1) {br._xscale = Math.round(100*c.getBytesLoaded()/c.getBytesTotal());};
};
Este debe ser el codigo referente al XML, pero como y donde llamo el XML.
Gracias por la paciencia apañero[/list]