ciao ho modificato innanzitutto le dimensioni del file da 500*99 a 99*500.
poi ho messo in verticale maschera e immagine e modificato i due codici cosi':
nell'mc slide object
codice:
// image=original movie
// --------------------------------------------
m = 0;
tmi = 2;
while (Number(m)<Number((tmi*2)-1)) {
m = Number(m)+1;
dup = "image" add m;
// Depth of this layer and depth of picture layer CANT be the same. So in this layer I add 1 to the depth to make sure of that.
duplicateMovieClip("image", dup, Number(m)+1);
setProperty(dup, _y, Number(getProperty(dup, _y))+Number(m*getProperty(dup, _height)));
}
e in dragControl
codice:
// ----------------------------------------------
// mouse drags
// ----------------------------------------------
startDrag("", true);
// ----------------------------------------------
// da settare a mano:
// ----------------------------------------------
movieheight = 500;
moviewidth = 99;
// ----------------------------------------------
// variabili
// ----------------------------------------------
w = getProperty("../picture", _height);
// ----------------------------------------------
// Drag Speed is INVERSE: ie:numero alto drag lento
speed = 105;
// ---------------------------------------------
// begin drag calculations
// ---------------------------------------------
xPos = getProperty("", _x);
yPos = getProperty("", _y);
// -------------------------------------------
// Center the Drag Effect
// -------------------------------------------
xPos = xPos-(moviewidth/2);
yPos = yPos-(movieheight/2);
// -------------------------------------------
// slide <--y-->
// -------------------------------------------
setProperty("../picture", _y, getProperty("../picture", _y)-(yPos/speed));
if (Number(getProperty("../picture", _y))<Number(-(w/2))) {
setProperty("../picture", _y, 0.01);
} else if (Number(getProperty("../picture", _y))>0) {
setProperty("../picture", _y, -w/2);
}
// -------------------------------------------
il risultato lo vedi QUI
e il sorgete lo scarichi da QUI