http://www.cristalab.com/tutoriales/60/crear-calendario-personalizado-en-flash.html
en el cambio que le hice se ve que cambié algo que no tenía que cambiar y los números de los días no me salen... el código lo dejé así:
_lockroot = true;
ma = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
hoy = new Date();
diaHoy = hoy.getDate();
mesCurso = mesHoy = hoy.getMonth();
anioCurso = anioHoy = (Number(hoy.getYear())+1900);
function meses(m,a) {
for(k=0;k<32;k++) {
_root["tempo"+k].removeMovieClip();
};
algo.removeMovieClip();
_root.createEmptyMovieClip("algo",999);
delete elmes;
trace(elmes+"elmes");
elmes = new Date(a,m);
mesCurso = elmes.getMonth();
anioCurso = (Number(elmes.getYear())+1900);
mes_txt.text = ma[mesCurso]+" "+anioCurso;
encol = 1;
for(d=1;d<=31;d++) {
hoyToca = 0;
elmes.setDate(d);
if(elmes.getMonth()==mesCurso) {
for(k=0;k<dias_activos.length;k++) {
manejo = new Array();
manejo = dias_activos[k].split("/");
trace(manejo[0]+" _ _ "+d+" _ _ "+manejo[1]+" _ _ "+(Number(mesCurso)+1)+" _ _ "+manejo[2]+" _ _ "+anioCurso);
if(manejo[0]==d && manejo[1]==(Number(mesCurso)+1) && manejo[2]==anioCurso) {
hoyToca = d;
enDia = k;
};
};
trace(hoyToca);
if(hoyToca>0) {
dia = hazBoton(d, d, acciones[enDia] ,idblog[enDia]);
} else {
if(d==diaHoy && mesCurso==mesHoy) {
dia = hazDia(d,"0xCCCCCC", d);
} else {
dia = hazDia(d,"0xFFFFFF", d);
};
};
dia._x = 75*elmes.getDay();
dia._y = 75*encol;
if(elmes.getDay()>=6) { encol++; };
//trace(elmes.getMonth());
};
};
trace(elmes.getYear());
trace(elmes.getDate());
trace(elmes.getDay());
};
function hazDia(p, col, label) {
var tm_mc = algo.createEmptyMovieClip("tempo"+p, p);
tm_mc.beginFill(col);
tm_mc.lineStyle(1, 0xff9900);
tm_mc.lineTo(0, 0);
tm_mc.lineTo(0+75, 0);
tm_mc.lineTo(0+75, 0+75);
tm_mc.lineTo(0, 0+75);
tm_mc.lineTo(0, 0);
format = new TextFormat();
format.font = "Aura-Oblique";
format.size = 12;
format.bold = true;
format.color = 0x000066;
tm_mc.createTextField("label_txt", p+525, 2, 0, 0, 0);
tm_mc.label_txt.selectable = false;
tm_mc.label_txt.embedFonts = true;
tm_mc.label_txt.text = label;
tm_mc.label_txt.autoSize = true;
tm_mc.label_txt.setTextFormat(format);
return tm_mc;
};
function hazBoton(p, label, accion,idb) {
var tm_mc = activo.duplicateMovieClip("tempo"+p,p);
format = new TextFormat();
format.font = "Aura-Oblique";
format.size = 12;
format.bold = true;
format.color = 0x000066;
tm_mc.createTextField("label_txt", p+525, 2, 0, 0, 0);
tm_mc.label_txt.selectable = false;
tm_mc.label_txt.html = true;
tm_mc.label_txt.text = label;
tm_mc.label_txt.autoSize = true;
tm_mc.label_txt.setTextFormat(format);
tm_mc.accion = accion;
tm_mc.bt.onRelease = function() { this.busca_lycos(idb);
};
return tm_mc;
};
ant_mc.onRelease = function() {
if (mesCurso>0) {
meses(--mesCurso, anioCurso);
} else {
mesCurso = 11;
meses(mesCurso, --anioCurso);
}
};
sig_mc.onRelease = function() {
if (mesCurso<11) {
meses(++mesCurso, anioCurso);
} else {
mesCurso = 0;
meses(mesCurso, ++anioCurso);
}
};
meses(mesHoy,anioHoy);
stop();
-----------------------------------------------------------------------------------------------------------------------------------------
no sé en qué le pifié pero los números no me salen... alguien me podría decir por favor qué le tengo que cambiar ? (disculpen si ya hay posteado algo parecido... pero no encontré la solución después de un buen rato de navegar x acá)
saludos !
cualquier cosa dejo mi msn x las dudas...
[email protected]
•«.¸¸.·´¯`¤ MeL ¤´¯`·.¸¸.»•
