Ho un piccolo problema, volevo usare uno script di yassassin, per uno scroller di immagini.
Questo filmato carica da un file txt e da una directory delle immagini e le fa muovere a destra o a sinistra a secondo della freccia premuta con questo script:
-------------
p_sx.useHandCursor = false;
p_dx.useHandCursor = false;
p_sx.onPress = function() {
this.onEnterFrame = function() {
if (lefoto._x>maschera._x) {
lefoto._x += 10;
lefoto2._x = lefoto._x-lefoto._width-10;
}
if (lefoto2._x>maschera._x) {
lefoto2._x += 10;
lefoto._x = lefoto2._x-lefoto2._width-10;
}
};
};
p_sx.onRelease = p_sx.onReleaseOutside=function () {
delete this.onEnterFrame;
};
p_dx.onPress = function() {
this.onEnterFrame = function() {
if (lefoto._x<=maschera._x) {
lefoto._x -= 10;
lefoto2._x = lefoto._x+lefoto._width+10;
}
if (lefoto2._x<=_root.maschera._x) {
lefoto2._x -= 10;
lefoto._x = lefoto2._x+lefoto2._width+10;
}
};
};
p_dx.onRelease = p_dx.onReleaseOutside=function () {
delete this.onEnterFrame;
};
---------------------
è possibile invece farlo scorrere da sx verso dx in continuazione e falo fermare al passaggio del mouse sopra?
Grazie Alberto

Rispondi quotando