Salve ho creato uno scrolling di immagini al interno di una pagina di un sito, composto da un movie clip al cui interno ho inserito:
al 1 frame vuoto :
//nr di foto
pieces = 13;
//posizione iniziale delle foto grandi (x)
liv. 1.primo frame questa action:
//nr di foto
pieces = 13;
//posizione iniziale delle foto grandi (x)
startLoc = 100

function floatTo(thePiece) {
//calcola la posizione del dragger
DraggerTargetLoc = small._x + (thePiece * smallPieceWidth) - (smallPieceWidth / 2)
//correction of previous formula ... don't know why yet ...
// you can change the number to finetune the position of the slider
DraggerTargetLoc = DraggerTargetLoc * 0.999
//calc targetLocation of large slider
LargeSliderTargetLoc = startLoc - (thePiece * largePieceWidth) + largePieceWidth
//correction: don't know why yet ... ;-)
// same here: you can change the number to finetune the position of the large slider
LargeSliderTargetLoc = LargeSliderTargetLoc * 0.999

}
poi altro livello ho inserito il dragger con questa azione:mc dragger istanza dragger;

onClipEvent (load) {
_root.floatTo(1)
}

onClipEvent (enterFrame) {
// calc new dx
dx = (_root.draggerTargetLoc - _x) / 3
// update location of dragger
_x = _x+dx;
}
altro livello azione per le foto piccole:mc small istanza small
onClipEvent (load) {
// calc width of one small piece (used at root level)
_root.smallPieceWidth = _width/_root.pieces;
}
// Gert's tip of the day:
//change to "mouseUp" if you want the user to click before floating ...
onClipEvent (mouseMove) {
// check if we hit the small slider
if (this.hitTest(_root._xMouse, _root._yMouse)) {
// get the clicked pieceNr
pieceNr = math.ceil(_xmouse/(_width/_root.pieces));
// call function in actions layer at the root
_root.floatTo(pieceNr);
}
}

altro livello mc large instanza large:
onClipEvent (load) {
// calc width of one large piece (used at root level)
_root.largePieceWidth = _width/_root.pieces;
}

onClipEvent (enterFrame) {
// calc new dx
dx = (_root.LargeSliderTargetLoc - _x) / 3.7
// update location of dragger
_x = _x+dx;
}
questo sono le azioni che ho inserito per creare lo scrolling , praticamente andando sulla col mouse sulla foto piccola si drovrebbe
spostare il dragger per vedere la seguenza delle foto,
e contemporanemente dovrebbe essere visualizzata l'immagini grande, ma non funziona
ho fatto varie prove ma non so da che cosa dipende? ma che cosa ho sbagliato?grazie.