I have an application that has this script:
ref = _root;
valorCart = _root.idCartelera;
valorUser = _root.id_user;
//
//valorCart = 14;
//valorUser = 4;
//
a = 0;
//
function chequearInicio(valor1, valor2, valor3, valor4) {
//
a++;
miIntervalo.clearInterval();
//
for (s=1; s<249; s++) {
ref["butaca"+s].gotoAndStop(1);
}
//
this.checkText.text = a;
//
lasButacas = new Array();
losElementos = new Array();
misButacas = new Array();
misElementos = new Array();
//
URLpath = "butaca_user.php?id_cartelera="+valor1+"&butaca="+valor2+"&id_user="+valor3+"&accion="+valor4;
datosme = new LoadVars();
datosme.sendAndLoad(URLpath, datosme, "POST");
datosme.onLoad = function(success) {
if (success) {
misButacas = datosme.butacas_user.split(",");
lasButacas = datosme.butacas.split(",");
for (k=0; k<misButacas.length; k++) {
misElementos[k] = new MovieClip();
misElementos[k].cosas = new Array();
misElementos[k].cosas = misButacas[k].split("_");
misElementos[k].ids = misElementos[k].cosas[0];
misElementos[k].estado = misElementos[k].cosas[1];
ref["butaca"+(misElementos[k].ids)].miEstado = misElementos[k].estado;
//
//
ref["butaca"+(misElementos[k].ids)].gotoAndStop(2);
//
//
}
//
for (z=0; z<lasButacas.length; z++) {
losElementos[z] = new MovieClip();
losElementos[z].cosas2 = new Array();
losElementos[z].cosas2 = lasButacas[z].split("_");
losElementos[z].ids2 = losElementos[z].cosas2[0];
losElementos[z].estado2 = losElementos[z].cosas2[1];
ref["butaca"+(losElementos[z].ids2)].miEstado = losElementos[z].estado2;
//
ref["butaca"+(losElementos[z].ids2)].gotoAndStop(3);
//
ref["butaca"+(losElementos[z].ids2)].enabled = false;
//
}
for (u=1; u<249; u++) {
//
ref["butaca"+u].onRelease = function() {
if (this.miAccion == 1) {
chequearInicio(valorCart, this.miNumero, valorUser, this.miAccion);
this.gotoAndStop(2);
}
if (this.miAccion == 2) {
chequearInicio(valorCart, this.miNumero, valorUser, this.miAccion);
this.gotoAndStop(1);
}
};
}
}
};
//
//
}
//
chequearInicio(valorCart, -1, valorUser, 3);
//
miIntervalo = setInterval(this, "chequearInicio", 4000, [valorCart], [-1], [valorUser], [3]);
//
//
continuarbtn.onRelease = function() {
getURL("teatro_entrada.php?products_id="+_root.products_id+"&idCartelera="+_root.id_cartelera+"&idLocal="+_root.idLocal);
};
stop();
The code goes to PHP file that print values that came from a database.
and changes the state of 249 buttons to RESERVED, TAKEN, BUYED AND FREE.
The issue is that when i try the APP in firefox or the flash player inside flash works fine, but when i tried on IE it doesn’t, it look like the swf file has his own cache and doesn’t refresh the values that came from the PHP.
Anyone knows why it happen this?