# Help on Finishing off this Loop Script

**URL:** <https://forum.kirupa.com/t/help-on-finishing-off-this-loop-script/183404>\
**Category:** flash\
**Created:** [March 26, 2006, 8:16pm UTC](https://forum.kirupa.com/t/help-on-finishing-off-this-loop-script/183404 "2006-03-26T20:16:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maive](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Maive](https://forum.kirupa.com/u/Maive)\
**Post date:** [March 26, 2006, 8:16pm UTC](https://forum.kirupa.com/t/help-on-finishing-off-this-loop-script/183404/1 "2006-03-26T20:16:46Z")

</div>

[FONT=“Times New Roman”][COLOR=“DarkSlateBlue”]Hello:

Simple script to do a simple alpha loop. I just can’t figure out the rest for the life of me… :-/

onClipEvent(enterFrame) {  
this.\_alpha -= 10;  
}

This makes the alpha fade upon entering the frame. But how do I complete it to make it continuously loop?[/COLOR][/FONT]

---

<div class="post-metadata">

**Author:** ![Maive](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Maive](https://forum.kirupa.com/u/Maive)\
**Post date:** [March 26, 2006, 8:30pm UTC](https://forum.kirupa.com/t/help-on-finishing-off-this-loop-script/183404/2 "2006-03-26T20:30:56Z")

</div>

[FONT=“Times New Roman”][COLOR=“DarkSlateBlue”]Ooops k, sorry. Got it. For reference: I just made the tween inside the MC so that way I can control the timing of the alpha fade. And then just threw that code into the MC instance and set it to play on entering frame.[/COLOR][/FONT]
