# Looping code problem - help please ;(

**URL:** <https://forum.kirupa.com/t/looping-code-problem-help-please/198667>\
**Category:** Uncategorized\
**Created:** [August 27, 2006, 1:14pm UTC](https://forum.kirupa.com/t/looping-code-problem-help-please/198667 "2006-08-27T13:14:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [August 27, 2006, 1:14pm UTC](https://forum.kirupa.com/t/looping-code-problem-help-please/198667/1 "2006-08-27T13:14:08Z")

</div>

I have code for tweening the alpha of an image to fade from one to the other which is fab but I needs it to loop. At the moment it runs through a series of images and stops - ideally I want to loop back to the beginning and run through the images again - can anyone help or suggest where I might find the answer - i’m not an actionscript expert by any means but can usually work it out once i’ve been given a few clues 🙂

Code is here:  
#include “lmc\_tween.as”  
image1.alphaTo(0, 3, “linear”,4)  
image2.alphaTo(0,3,“linear”,8)  
image3.alphaTo(0, 3,“linear”,10)  
image4.alphaTo(0, 3, “linear”,14)  
stop();
