# \[AS2\] Stop alpha fade from looping

**URL:** https://forum.kirupa.com/t/as2-stop-alpha-fade-from-looping/315781
**Category:** flash
**Created:** [November 3, 2010, 8:53pm UTC](https://forum.kirupa.com/t/as2-stop-alpha-fade-from-looping/315781 "2010-11-03T20:53:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fleurdelisgrrl](https://avatars.discourse-cdn.com/v4/letter/f/bb73d2/32.png) [@fleurdelisgrrl](https://forum.kirupa.com/u/fleurdelisgrrl)
#### Post date: [November 3, 2010, 8:53pm UTC](https://forum.kirupa.com/t/as2-stop-alpha-fade-from-looping/315781/1 "2010-11-03T20:53:02Z")

</div>

Hey Guys -

I have an AS where I’m pulling in images to two possible empty movieclips based on whether it’s a plain “image” or if it’s a “video” image which will then create different actions later. But the problem I’m having now is that I want the images that are pulling in to gradually load - which works fine… but I noticed that after a couple of minutes it seems to LOOP! So the images disappear, then a couple minutes after that the images fade in again like the did in the beginning. Any suggestions? My code is below:

```auto

this.onEnterFrame = function() {
picture._alpha += 5;
picture1._alpha += 5;
picture2._alpha += 5;
picture3._alpha += 5;
picture4._alpha += 5;
picture5._alpha += 5;
picture6._alpha += 5;
picture7._alpha += 5;
picture8._alpha += 5;
picture9._alpha += 5;
if (vidimage[0] != undefined) {
video._alpha += 5;
picture._alpha = 0;
}
if (vidimage[1] != undefined) {
video1._alpha += 5;
picture1._alpha = 0;
}
if (vidimage[2] != undefined) {
video2._alpha += 5;
picture2._alpha = 0;
}
if (vidimage[3] != undefined) {
video3._alpha += 5;
picture3._alpha = 0;
}
if (vidimage[4] != undefined) {
video4._alpha += 5;
picture4._alpha = 0;
}
if (vidimage[5] != undefined) {
video5._alpha += 5;
picture5._alpha = 0;
}
if (vidimage[6] != undefined) {
video6._alpha += 5;
picture6._alpha = 0;
}
if (vidimage[7] != undefined) {
video7._alpha += 5;
picture7._alpha = 0;
}
if (vidimage[8] != undefined) {
video8._alpha += 5;
picture8._alpha = 0;
}
if (vidimage[9] != undefined) {
video9._alpha += 5;
picture9._alpha = 0;
}
};

```

Thanks in advance!

M.
