# How to loop script

**URL:** https://forum.kirupa.com/t/how-to-loop-script/274026
**Category:** flash
**Created:** [October 23, 2008, 9:31pm UTC](https://forum.kirupa.com/t/how-to-loop-script/274026 "2008-10-23T21:31:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gitthiscrunk](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@gitthiscrunk](https://forum.kirupa.com/u/gitthiscrunk)
#### Post date: [October 23, 2008, 9:31pm UTC](https://forum.kirupa.com/t/how-to-loop-script/274026/1 "2008-10-23T21:31:24Z")

</div>

I’m an actionscript beginner. I’m using the TweenLite class to make 3 images fade in and out. (It would be easier for me to just do this on the timeline but I’m trying to learn AS.) All my code and content sits on Frame 1. I want to know how to make my movie continuously loop.

Here is my code:

```auto
import gs.TweenLite;
import mx.transitions.Tween;
import mx.transitions.easing.*;

TweenLite.to(img3_mc, .5, {delay:1, _alpha:0});
TweenLite.to(img2_mc, .5, {delay:3, _alpha:0});

TweenLite.to(img3_mc, .5, {delay:5, _alpha:100, overwrite:false});

```
