Forum de discussion
Forum « Flash et Shockwave » (archives)
Re: défilement sans fin vers la gauche
Envoyé: 2 septembre 2006, 5h57 par toph
a vue de nez, sans avoir testé je mettrais ça :
onClipEvent (load) {
this.direction = 1;
this.Contenu1.duplicateMovieClip("Contenu2", 1);
this.Contenu2._x = Contenu1._x + Contenu1._width;
}
onClipEvent (enterFrame) {
if (direction==1) {
if (Contenu1._x>= -Contenu1._width ) {
Contenu1._x -= 10;
} else {
Contenu1._x = Contenu2._x - 10 + Contenu1._width;
}
if (Contenu2._x>= -Contenu2._width) {
Contenu2._x -= 10;
} else {
Contenu2._x = Contenu1._x - 10 + Contenu2._width;
}
}
}
Mais, je répete que j'ai pas testé ... ;) tu me diras si ça marche...
Réponses
|