tengo un problema con el calendario que estoy haciendo,
utilizo el codigo del calendario que se encuentra en los ejemplos de cristalab, todo funciona bien solo que los botones de cada fecha me los ubica en otra posicion, podrian ayudarme
aqui el codigo que uilizo
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 hazDia(p, col, label) {
var tm_mc = algo.createEmptyMovieClip("tempo"+p, p);
tm_mc.beginFill(col);
format = new TextFormat();
format.font = "Pilsen Plakat";
format.size = 12;
format.bold = false;
format.color = 0x666666;
tm_mc.createTextField("label_txt", p+100, 95, 160, 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 = "Arial";
format.size = 10;
format.bold = true;
format.color = 0xffffff;
tm_mc.createTextField("label_txt", p+100, 95, 160, 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;
}
function meses(m, a) {
for (k=0; k<32; k++) {
_root["tempo"+k].removeMovieClip();
}
algo.removeMovieClip();
_root.createEmptyMovieClip("algo", 999);
delete 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("/");
if (manejo[0] == d && manejo[1] == (Number(mesCurso)+1) && manejo[2] == anioCurso) {
hoyToca = d;
enDia = k;
}
}
if (hoyToca>0) {
dia = hazBoton(d, d, acciones[enDia], idblog[enDia]);
} else {
if (d == diaHoy && mesCurso == mesHoy && anioCurso == anioHoy) {
dia = hazDia(d, "0xdddddd", d);
} else {
dia = hazDia(d, "0xdddddd", d);
}
}
dia._x = 39*elmes.getDay();
dia._y = 30*encol;
if (elmes.getDay()>=6) {
encol++;
}
}
}
}
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);
[/quote][/flash]
