# setInterval - actionscript 2.0

**URL:** https://forum.kirupa.com/t/setinterval-actionscript-2-0/236370
**Category:** flash
**Created:** [August 20, 2007, 10:14am UTC](https://forum.kirupa.com/t/setinterval-actionscript-2-0/236370 "2007-08-20T10:14:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_Goudie](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Sam\_Goudie](https://forum.kirupa.com/u/Sam_Goudie)
#### Post date: [August 20, 2007, 10:14am UTC](https://forum.kirupa.com/t/setinterval-actionscript-2-0/236370/1 "2007-08-20T10:14:40Z")

</div>

Hey,

I’m programming some tweens with actionscript and I want the flashplayer to wait 0.5 seconds between each action. I’ve used set interval before, but that was when I only wanted the playhead to stop, wait so many seconds.

In this instance I need it to go like this:

import mx.transitions.easing.\*;  
import mx.transitions.Tween

var mc1:Tween = new Tween(mc1, “\_y”, mx.transitions.easing.Bounce.easeOut, -20, 330, 10, false);

wait 0.5 seconds (need the code for this bit!)

var mc2:Tween = new Tween(mc2, “\_y”, mx.transitions.easing.Bounce.easeOut, -20, 330, 10, false);

wait 0.5 seconds (need the code for this bit!)

var mc3:Tween = new Tween(mc3, “\_y”, mx.transitions.easing.Bounce.easeOut, -20, 330, 10, false);

e.t.c and there are 20 mc’s that I need to tween. Obviously don’t want to have mountains of nested code, any ideas? If you could set out the syntax in your replies that would be great as otherwise I probably won’t understand!

Cheers
