# FLA-MX 'nother scrolling image question

**URL:** <https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160>\
**Category:** flash\
**Created:** [November 14, 2002, 9:12pm UTC](https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160 "2002-11-14T21:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![odeathoflife](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@odeathoflife](https://forum.kirupa.com/u/odeathoflife)\
**Post date:** [November 14, 2002, 9:12pm UTC](https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160/1 "2002-11-14T21:12:12Z")

</div>

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](http://www.squamishwol.com/index_bb.html)  
it’s on the main window near the bottom.:cyclops:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2002, 9:21pm UTC](https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160/2 "2002-11-15T21:21:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2002, 9:33pm UTC](https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160/3 "2002-11-15T21:33:18Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2002, 9:41pm UTC](https://forum.kirupa.com/t/fla-mx-nother-scrolling-image-question/8160/4 "2002-11-15T21:41:18Z")

</div>

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);
