J'ai un probleme je ne comprend pas comment faire .
J'ai fait un effet mer sur une images mais je voudrais rajouter une animation texte dessus.
le probleme que mon animation mer sous la sequence1 calques appelais action avec pour script
anglecollectif=0;
angleaug= 2*Math.PI/50;
for(var i=0;i<28;i++)
{
var mc=attachMovie("Photo_mc","Photo_mc"+i,i);
mc.mask._x=i*50;
mc.angle=i*2*Math.PI/10;
mc.onEnterFrame=Deplacement;
}
function Deplacement()
{
this._y=Math.cos(this.angle+anglecollectif)*2.5;
}
onEnterFrame = function() {
anglecollectif += angleaug;
}
J'ai fais une animation texte qui marche super bien seul mais quand je le mets avec l'autre animation sa deconne
son script est :
function aff_text() {
texte = "AQUAFEELING, la méthode de référence\r\n";
texte = texte.split("");
i = x=y=0;
pos = {x:50, y:70};
esp = {x:2, y:0};
inter = setInterval(function (_this) { if (texte[i] == "\r") {y += p.lettre.aff.textHeight+esp.y;x = 0;i++;} else {p = _this.attachMovie("animation", "animation"+i, i, {_x:pos.x+x, _y:pos.y+y});p.lettre.aff.text = texte[i++];p.lettre.aff.autoSize = true;x += p.lettre.aff.textWidth+esp.x;if (i == texte.length) {clearInterval(inter);last = p;}setTimeout(function (_this) { _this.play();}, 15000, p);}}, 60, this);
}
aff_text();
b.onRelease = function() {
clearInterval(inter);
for (var j = 0; j<=i; j++) {
this._parent["animation"+j].removeMovieClip();
}
aff_text();
};
Comment pourrais fusionner mais deux animations, merci d'avance de votre aide peux fournir le fla.