Ciaooo!!
Una piccolissima domanda... ho uno slide di prodotti che scorre verso dx e sx a seconda del movimento del mouse (dx o sx senza dover cliccare nulla)... questo slide scorre pero' all'infinito, è possibile farlo fermare quando i miei prodotti finiscono?
Le azioni che ho all'interno sn queste:
m = 0;
tmi = 2;
while (Number(m) < Number(tmi * 2 - 1))
{
m = Number(m) + 1;
dup = "image" + m;
duplicateMovieClip("image", dup, Number(m) + 1);
setProperty(dup, _x, Number(getProperty(dup, _x)) + Number(m * getProperty(dup, _width)));
} // end while
startDrag ("", true);
movieheight = 550;
moviewidth = 970;
w = getProperty("../picture", _width);
speed = 100;
xPos = _x;
yPos = _y;
xPos = xPos - moviewidth / 2;
yPos = yPos - movieheight / 2;
setProperty("../picture", _x, getProperty("../picture", _x) - xPos / speed);
if (Number(getProperty("../picture", _x)) < Number(-w / 2))
{
setProperty("../picture", _x, 1.000000E-002);
}
else if (Number(getProperty("../picture", _x)) > 0)
{
setProperty("../picture", _x, -w / 2);
} // end else if

Rispondi quotando
nessuno?
