Salve!
Ho realizzato uno slide immagini, e su internet ho trovato le azioni per le freccette dx e sx e sono:
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
scrollleft = true;
}
}
onClipEvent (mouseUp) {
scrollleft = false;
}
onClipEvent (enterFrame) {
if (scrollleft & _root.lista._x<>150) {
_root.target += 10;
} else if ((Key.isDown(Key.UP) == true)) {
_root.target += 10;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
scrollright = true;
}
}
onClipEvent (mouseUp) {
scrollright = false;
}
onClipEvent (enterFrame) {
if (scrollright) {
_root.target -= 10;
} else if ((Key.isDown(Key.DOWN) == true)) {
_root.target -= 10;
}
}
Queste funzionano se faccio click con il mouse..ma se io volessi farle funzionare al passaggio del mouse? Cosa dovrei modificare???
Ho realizzato uno slide immagini, e su internet ho trovato le azioni per le freccette dx e sx e sono:
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
scrollleft = true;
}
}
onClipEvent (mouseUp) {
scrollleft = false;
}
onClipEvent (enterFrame) {
if (scrollleft & _root.lista._x<>150) {
_root.target += 10;
} else if ((Key.isDown(Key.UP) == true)) {
_root.target += 10;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
scrollright = true;
}
}
onClipEvent (mouseUp) {
scrollright = false;
}
onClipEvent (enterFrame) {
if (scrollright) {
_root.target -= 10;
} else if ((Key.isDown(Key.DOWN) == true)) {
_root.target -= 10;
}
}
Queste funzionano se faccio click con il mouse..ma se io volessi farle funzionare al passaggio del mouse? Cosa dovrei modificare???