sugar
Erfahrenes Mitglied
Hallo, ich habe folgendes kleines Script für eine Logo Leiste verwendet die sich von rechts nach links bewegt:
Ich würde jetzt so gern noch die Logos verlinken aber weiß absolut nicht wie! Hat jemand eine Idee?
HTML:
Nmcs = 19; // anzahl der MC's zum srollen
espacio = 30; // space zwischen den Bildern
Xc = 0; //x-wert
Yc =10; //y-wert
alturamax = 250; //geschwindigkeit
anchmax = 800;
velo = velobase = 2;
ajuste =false
createEmptyMovieClip ("imgMC",0);
imgMC._y = Yc;
imgMC._x = actual = Xc;
anchomas = 0;
altomas = 0;
for (k = 1 ; k <= Nmcs*2 ;k++) {
imgMC.attachMovie("MC"+(1+(k-1)%Nmcs), "MC"+k, k);
with (eval("imgMC" + ".MC" + k)){;
_x = actual;
if (_height > alturamax || ajuste){
_yscale = alturamax * 100 / _height;
_xscale = _yscale;
}
_width > anchomas ? anchomas = _width : null;
_height > altomas ? altomas = _height : null;
actual += _width + espacio;
}
}
actual/2 > anchmax ? anchura = anchmax : anchura = actual/2;
imgMC._x = Xc - anchomas;
imgMC.createEmptyMovieClip ("mascara", 2000);
with (imgMC.mascara){
_x= anchomas;
beginFill (0x0000FF,50);
moveTo (0,0); lineTo ( anchura,0);
lineTo (anchura,altomas);
lineTo (0,altomas);
lineTo (0,0);
endFill();
}
imgMC.setMask(imgMC.mascara);
onEnterFrame = function() {
for (k = 1 ; k <= Nmcs*2 ; k++) {
with (eval("imgMC.MC"+k)){;
_x += velo;
_x - actual >= velo ? _x -= actual : null;
_x <= 0 ? _x += actual: null
}
}
}
imgMC.mascara.onRollOut = function () {velo = velobase;}
imgMC.mascara.onRollOver = function () {velo = 0;}
Ich würde jetzt so gern noch die Logos verlinken aber weiß absolut nicht wie! Hat jemand eine Idee?