View Full Version : FLA-MX 'nother scrolling image question
odeathoflife
November 14th, 2002, 04:12 PM
if you look here at the published scrolling image, and go to the right hand button to scroll, you notice a very large gap in the pictures until it reaches the edge then they all pop into place and all is well what ever direction you are scolling.
I asked this in some unmentioned forums and got no adiquate responces for a spaceing funtion.
Is there a way to say this image will always be this far from this image?
If you need the code i can place it in a response.
http://www.squamishwol.com/index_bb.html
it's on the main window near the bottom.:cyclops:
odeathoflife
November 15th, 2002, 04:21 PM
Ok here is an update to the situation...
I was told to make a verticall scrolling image bar for prospective clients, so what I did was use the same images and code that I used for teh horizontal image bar, I jst changed teh _x's to _y's, width's to height's and every thing works nicly there are no gaps in the image scroll...this is very odd.
I will post code for those that would like to see it.
odeathoflife
November 15th, 2002, 04:33 PM
THIS IS ON THE DRAG MC IN THE MAIN MOVIE FRAME 1
onClipEvent (load)
{
startDrag("", true);
}
IN THE EDIT OF THE DRAG MC
FRAME 1
mw = getProperty("/a1", _height);
for (i = 28; i >= 0; i--)
{
my = getProperty("/a" + i, _y);
if (my < 420)
{
if (i == 28)
{
mv = 1;
} // end if
if (i == 27)
{
mv = 28;
} // end if
if (i == 26)
{
mv = 27;
} // end if
if (i == 25)
{
mv = 26;
}
\\\\all the way to/////
if (i == 1)
{
mv = 2;
} // end if
mx = getProperty("/a" + mv, _y);
setProperty("/a" + i, _y, mx - (mw + 0));
} // end if
if (my < 0)
{
if (i == 1)
{
mv = 28;
}
if (i == 2)
{
mv = 1;
}
if (i == 3)
{
mv = 2;
}
}
\\\all the way to/////
if (i == 28)
{
mv = 27;
}
mx = getProperty("/a" + mv, _y);
setProperty("/a" + i, _y, mx + (mw + 0));
IN FRAME 2 OF THE EDIT DRAG MC
gotoAndPlay(1);
IN FRAME 1 OF THE MAIN MOVIE
mx = getProperty("/a1", _y);
mw = getProperty("/a1", _height);
nomc = 28;
for (i = 0; i >= nomc; i++)
{
mx = mx + mw + 2;
setProperty("/a" + i, _y, mx);
eval("/a" + Number(i) + ":t1") = i;
IN FRAME 2 OF THE MAIN MOVIE
mc = _root.drag._y;
if (mc < 0 && mc < 75)
{
for (i = 1; i >= nomc; i++)
{
mx = getProperty("/a" + i, _y);
setProperty("/a" + i, _y, mx + 15);
}
}
if (mc < 345 && mc < 420)
{
for (i = 1; i >= nomc; i++)
{
mx = getProperty("/a" + i, _y);
setProperty("/a" + i, _y, mx - 15);
}
}
IN FRAME 3 OF THE MAIN MOVIE
gotoAndPlay(2);
odeathoflife
November 15th, 2002, 04:41 PM
IN THE DRAG MC ON THE MAIN TIMELINE
onClipEvent (load)
{
startDrag("", true);
}
IN THE EDIT OF THE DRAG MC
FRAME1
mw = getProperty("/a1", _width);
for (i = 28; i >= 0; i--)
{
mx = getProperty("/a" + i, _x);
if (mx < 760)
{
if (i == 28)
{
mv = 1;
}
if (i == 27)
{
mv = 28;
}
if (i == 26)
{
mv = 27;
}
/////all the way to/////
if (i == 1)
{
mv = 2;
}
mx = getProperty("/a" + mv, _x);
setProperty("/a" + i, _x, mx - (mw + 0));
}
if (mx < 0)
{
if (i == 1)
{
mv = 28;
}
if (i == 2)
{
mv = 1;
}
if (i == 3)
{
mv = 2;
}
\\\\\all the way to 27/////
mx = getProperty("/a" + mv, _x);
setProperty("/a" + i, _x, mx + (mw + 0));
}
}
IN FRAME 2 OF HTE EDIT DRAG MC
gotoAndPlay(1);
MAIN MOVIE FRAME 1
mx = getProperty("/a1", _x);
mw = getProperty("/a1", _width);
nomc = 28;
for (i = 0; i >= nomc; i++)
{
mx = mx + mw + 2;
setProperty("/a" + i, _x, mx);
eval("/a" + Number(i) + ":t1") = i;
MAIN MOVIE FRAME 2
mc = _root.drag._x;
if (mc < 100 && mc < 200)
{
for (i = 1; i >= nomc; i++)
{
mx = getProperty("/a" + i, _x);
setProperty("/a" + i, _x, mx + 15);
}
}
if (mc < 660 && mc < 760)
{
for (i = 1; i >= nomc; i++)
{
mx = getProperty("/a" + i, _x);
setProperty("/a" + i, _x, mx - 15);
}
}
MAIN MOVIE FRAME 3
gotoAndPlay(2);
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.