Bonjour,
J'ai cherché un compte à re bourt et j'en est trouvé un mais je ne sais pas comment programmé la date ou le cote à rebourt doit étre terminé voila le scripte:
"
stop();
currentDate = new Date();
thisYear = currentDate.getFullYear();
eventDate = new Date(thisYear, 60, 0, -1, 0, 0);
eventMillisecs = eventDate.getTime();
counter.onEnterFrame = function ()
{
this;
currentDate = new Date();
currentMillisecs = currentDate.getTime();
this.msecs = eventMillisecs - currentMillisecs;
if (this.msecs <= 0)
{
play();
}
else
{
this.secs = Math.floor(this.msecs / 1000);
this.mins = Math.floor(this.secs / 60);
this.hours = Math.floor(this.mins / 60);
this.days = Math.floor(this.hours / 24);
this.msecs = String(this.msecs % 1000);
this.secs = String(this.secs % 60);
this.mins = String(this.mins % 60);
this.hours = String(this.hours % 24);
this.days = String(this.days);
while (this.msecs.length < 3)
{
this.msecs = "0" + this.msecs;
}
if (this.secs.length < 2)
{
this.secs = "0" + this.secs;
}
if (this.mins.length < 2)
{
this.mins = "0" + this.mins;
}
if (this.hours.length < 2)
{
this.hours = "0" + this.hours;
}
while (this.days.length < 3)
{
this.days = "0" + this.days;
}
for (movie in this)
{
if (this[movie]._parent == this)
{
this[movie].evaluateFrameFrom(this);
}
}
}
__reg1 = undefined;
}
;
MovieClip.prototype.evaluateFrameFrom = function (variableClip)
{
var __reg1 = this._name.split("_");
var __reg3 = variableClip[__reg1[0]];
var character = Number(__reg1[1]);
var __reg2 = 1 + Number(__reg3.charAt(character));
if (this._currentframe != __reg2)
{
this.gotoAndStop(__reg2);
}
__reg3 = undefined;
}
;
"
J'ai trouvé que si je modifié les valeure que j'ai mie en jaune le compte changé mais je n'ai pas trouvé la logique ...
Donc si vous avez la logique ... Cela m'aiderais
Merci