ni esto:
onClipEvent (load) {
// Coder: A. K. M. Dider |
www.thegreendove.tk |
[email protected] // Copyright(c) 2005 A. K. M. Dider. All rights reserved.
var ypos=-200;
for (i=1; i<7; i++) {
this.attachMovie("img"+i, "tnimg"+i, i);
this["tnimg"+i]._y=ypos;
this["tnimg"+i]._x=0;
ypos+=100;
}
ypos-=100;
myArray=new Array(this.tnimg1, this.tnimg2, this.tnimg3, this.tnimg4, this.tnimg5, this.tnimg6);
reelSpeed=2;
imageCount=6;
}
onClipEvent (enterFrame) {
if (this.hitTest( _root._xmouse, _root._ymouse, true)) {
} else {
myArray[0]._y-=reelSpeed;
myArray[1]._y-=reelSpeed;
myArray[2]._y-=reelSpeed;
myArray[3]._y-=reelSpeed;
myArray[4]._y-=reelSpeed;
myArray[5]._y-=reelSpeed;
if (myArray[0]._y<=-300) {
myArray[0].removeMovieClip();
myArray[0]=myArray[1];
myArray[1]=myArray[2];
myArray[2]=myArray[3];
myArray[3]=myArray[4];
myArray[4]=myArray[5];
if (imageCount==16) {
imageCount=0;
}
imageCount++;
this.attachMovie("img"+imageCount, "tnimg"+imageCount, imageCount);
this["tnimg"+imageCount]._y=ypos;
this["tnimg"+imageCount]._x=0;
myArray[5]=this["tnimg"+imageCount];
trace ("Trace output 1");
}
}
// Coder: A. K. M. Dider |
www.thegreendove.tk |
[email protected] // Copyright(c) 2005 A. K. M. Dider. All rights reserved.
}
ni esto:
onClipEvent (enterFrame) {
// movie clip enterframe event
_y = _y+1;
// change position for each enterframe event
if (_y>=507) {
// condition
_y = -360;
// if condition true movie clip jumps to starting postion.
}
}
ni esto:
onClipEvent (enterFrame) {
// movie clip enterframe event
_y = _y+1;
// change position for each enterframe event
if ((_y>=43.2*(9-1)-2)) {
// condition
_y = -43.2-2;
// if condition true movie clip jumps to starting postion.
}
}
es una tira de imagenes del mismo ancho, pero no todas tienen el mismo alto. son 9 fotos totales.
preguntá mas detalles cualquier cosa