Lorsque je publie mon fichier fla avec le logiciel animate CC, j'ai un ocde erreur 1084 erreur de syntaxe rightparen est attendu devant or.
Voici le code source erreur identifié par le logiciel à la ligne " if (speed < -0.05 or speed > 0.05)":
this.setTextMove = function ()
{
this.viewer_mc.toMoveHeight = (this.textHeight - this.viewAreaHeight) + this.endBuffer;
this.viewer_mc.dragMoveSpace = this.dragAreaHeight;
this.viewer_mc.__main = this;
this.viewer_mc.onEnterFrame = function ()
{
var dragValue = this.__main.dragger_mc._y - this.__main.dragStartPosition;
var endPos = ((this.toMoveHeight * dragValue) / this.dragMoveSpace) * -1;
acPos = this.text_mc._y;
speed = (endPos - acPos) / this.__main.inertiaSpeed;
if (speed < -0.05 or speed > 0.05)
{
this.text_mc._y = acPos + speed;
}
else
{
this.text_mc._y = Math.round (endPos);
if (!this.__main.isDragging)
{
delete this.onEnterFrame;
}
}
};
};
Ne sachant pas coder dans ce genre de fonction, je viens vers vous pour un coup de main.
Bien cordialement.