# Image (looping?)

**URL:** <https://forum.kirupa.com/t/image-looping/118598>\
**Category:** Uncategorized\
**Created:** [August 7, 2004, 3:23am UTC](https://forum.kirupa.com/t/image-looping/118598 "2004-08-07T03:23:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 3:23am UTC](https://forum.kirupa.com/t/image-looping/118598/1 "2004-08-07T03:23:54Z")

</div>

Basically, i’ve got an image which is pretty much a wide and short one.

This is my goal: to take this long image and “loop” it.

What I mean is it for to be moving simultaneously to the left and it kind of goes into a tunnel and then comes out on the right hand side and continues movin.

Not sure if this is possible, but if anyone could makea sample fla for me, I will love you forever!! 🍺

- abder

---

<div class="post-metadata">

**Author:** ![thesignx](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@thesignx](https://forum.kirupa.com/u/thesignx)\
**Post date:** [August 7, 2004, 5:43am UTC](https://forum.kirupa.com/t/image-looping/118598/2 "2004-08-07T05:43:50Z")

</div>

Let see if I got the idea right…

You have an image on the stage which is wide and short in size(pixels). This image you want it to move from Right to Left and get into a tunnel (what you mean with a tunnel; an image on top or just a mask). Also, you want this image to repeat all the proces again by returning to its original Right Position and go Left again?

Cheers

---

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 2:04pm UTC](https://forum.kirupa.com/t/image-looping/118598/3 "2004-08-07T14:04:22Z")

</div>

kind of, just like it never stopped moving. Say on this image I have the letter A on it… it will eventually move to the left and go through the masking point or “tunnel” and end up on the right still moving slowly… can you do this?

thanks

---

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 3:05pm UTC](https://forum.kirupa.com/t/image-looping/118598/4 "2004-08-07T15:05:28Z")

</div>

I read another post when someone wanted this effect.

here is the code:

```auto

onClipEvent (enterFrame) {
_x = _x + 10;
// if the instance goes off stage right,
// then move it to the left side of stage
if(_x > 300){
_x = 0;
}
}

```

but this does not work, can anyone offer a different tweak to continue the image seamlessely?

heres an example: [http://www.csuchico.edu/athletics/](http://www.csuchico.edu/athletics/)

thanks

---

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 5:14pm UTC](https://forum.kirupa.com/t/image-looping/118598/5 "2004-08-07T17:14:15Z")

</div>

i still need help! ☹

---

<div class="post-metadata">

**Author:** ![paradox244](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@paradox244](https://forum.kirupa.com/u/paradox244)\
**Post date:** [August 7, 2004, 5:44pm UTC](https://forum.kirupa.com/t/image-looping/118598/6 "2004-08-07T17:44:18Z")

</div>

If you only have one picture that you want to scroll, then it will always jump back to the beginning, what you have to do is attach another instance of the movie clip to the stage, then line it up so it will look right. like this:  
|[mask left] |[mask right]  
|[copy of pic to scroll 1]|[copy of pic to scroll 2]  
|[mask left] |[mask right]  
then you add he scroll actionscript you posted above to the second copy also. This will make the first pic scroll of stage left as copy 2 scolls in stage right, then when all of copy 1 has gone off the left side of the stage it will jump back to the right side and start over. ad infintum…

If that doesn’t make sense to you let me know and I will make a demo file for you to look at…  
Good luck  
Shawn

---

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 6:08pm UTC](https://forum.kirupa.com/t/image-looping/118598/7 "2004-08-07T18:08:07Z")

</div>

a demo file would be sweet man, because i’m completely new to this stuff!

thanks a million, you are a great help!

---

<div class="post-metadata">

**Author:** ![paradox244](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@paradox244](https://forum.kirupa.com/u/paradox244)\
**Post date:** [August 7, 2004, 6:23pm UTC](https://forum.kirupa.com/t/image-looping/118598/8 "2004-08-07T18:23:34Z")

</div>

Give me a few minutes to find something to scroll and I will have the file up

Okay the file is too large to upload so I will put it on my server, heres the link  
[Scrolling Picture](http://veuphoria.com/help/scrollingpics.zip)

---

<div class="post-metadata">

**Author:** ![flash2004](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@flash2004](https://forum.kirupa.com/u/flash2004)\
**Post date:** [August 7, 2004, 7:00pm UTC](https://forum.kirupa.com/t/image-looping/118598/9 "2004-08-07T19:00:43Z")

</div>

sweet dude… thanks a lot!!! i’ll tweak around with it 🙂

perhaps you also have the answer to my tabs question in the other thread in this section?

thanks again!!
