Bonjour à tous
Voici un code actionnant deux barres se fermant et s'ouvrant au rythme d'un clic d'appareil photo.
Le résultat est correct dans Firefox ou Opera mais extrêmement ralenti dans Internet Explorer et ce quelque soit la version du navigateur ou du Flash Player.
Quelqu'un a-t-il déjà été confronté à de telles anomalies?
Merci d'avance pour vos réponses.
th = this;
th2 = this._parent;
v = 150;
function o() {
if (v == 145) {
clearInterval(tempo);
if (th2.animation == 2) {
th2.mcTourniquet.charger_tourniquet();
}
}
v += 5;
vh._y = -v;
vb._y = v;
}
function f() {
if (v == 0) {
clearInterval(tempo);
tempo = setInterval(th, "o", 2);
}
v -= 5;
vh._y = -v;
vb._y = v;
}
function cliclac() {
aphh = new Sound();
aphh.attachSound("declic");
aphh.start();
tempo = setInterval(th, "f", 2);
}
Pi'ère2