salve ho un problema con questo as.. che mi fa scrollare perfettamente in orizzontale un MC costituito da una semplice serie di fotine piccole... ma
quando vado a cercare di modificare e fare lo scroll verticalmente (mi occorre così ora per un'altra pagina).. mi si blocca o non si muove per niente... help:°
il nome dell'mc è: photo
e l'as è il seguente:
// Setting the xmouse to 0 in the centre of the movie:
xmouse = _xmouse - (widthmovie / 2);
// Setting the speed:
speed = (xmouse) / scrollspeed;
// If the speed is negative, the speed will be made positive here:
if (speed < 0) {
speed = -(speed);
}
//basically says that if the mouse isn't betwen these two y points it won't work
//make sure that you figure out the top and bottom y points of your "photo" and insert them accordingly!
mouseposition = getProperty("/myself", _y);
if (_ymouse < 29) {
speed=0;
}
if (_ymouse > 118) {
speed=0;
}
// If the mouse moves to left, the photo will scroll to the right:
if (xmouse < 0) {
xphoto = xphoto + speed;
}
// If the mouse moves to the right, the photo will scroll to the left:
if (xmouse > 0) {
xphoto = xphoto - speed;
}
// Checking for the left end of the image:
if (xphoto > 0) {
xphoto = 0;
}
// Checking for the right end of the image:
if (xphoto < -(widthphoto - widthmovie)) {
xphoto = -(widthphoto - widthmovie);
}
// Placing the moviclip (photo) on it's new postition:
setProperty("photo", _x, xphoto);
cosa dovrei fare per rendere lo scroll verticale e non più orizzontale?? ho fatto un sacco di prove e non so più che fare!:°


Rispondi quotando
