Ciao a tutti! non riesco a trovare un esempio di slide verticale in rete, ho preso uno in orizzontale e cercavo di modificare qst. Solo che nn essendo proprio esperta mi trovo un po' in difficoltà...
Ora copio qui i codici che ho trovato nel sorgente, se c'e' qualcuno che ne capisce di piu' e vuole darmi una mano..
L'esepio che ho preso è cmq qst qua:
http://flash.html.it/movie/vedi/51/scroll-img-1/
Il primo codice che ho trovato è dentro una clip vuota con solo 2 fotogrammi
nel primo:
// ----------------------------------------------
// mouse drags
// ----------------------------------------------
startDrag("", true);
// ----------------------------------------------
// da settare a mano:
// ----------------------------------------------
movieheight = 99;
moviewidth = 500;
// ----------------------------------------------
// variabili
// ----------------------------------------------
w = getProperty("../picture", _width);
// ----------------------------------------------
// 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 <--x-->
// -------------------------------------------
setProperty("../picture", _x, getProperty("../picture", _x)-(xPos/speed));
if (Number(getProperty("../picture", _x))<Number(-(w/2))) {
setProperty("../picture", _x, 0.01);
} else if (Number(getProperty("../picture", _x))>0) {
setProperty("../picture", _x, -w/2);
}
// -------------------------------------------
nel secondo:
gotoAndPlay(_currentframe-1);
Poi ho un'azione dentro la clip dove ho le immagini che scorrono (sempre sul fotogramma):
// --------------------------------------------
// Make duplicate of picture
// --------------------------------------------
// tmi=total duplicates (2)
// dup=new movie duplicates
// 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, _x, Number(getProperty(dup, _x))+Number(m*getProperty(dup, _width)));
}
C'e' qualcuno che riesce ad aiutarmi??![]()
![]()
![]()
![]()

Rispondi quotando