# setInterval question

**URL:** <https://forum.kirupa.com/t/setinterval-question/193812>\
**Category:** Uncategorized\
**Created:** [July 18, 2006, 4:14pm UTC](https://forum.kirupa.com/t/setinterval-question/193812 "2006-07-18T16:14:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikedkap](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mikedkap](https://forum.kirupa.com/u/mikedkap)\
**Post date:** [July 18, 2006, 4:14pm UTC](https://forum.kirupa.com/t/setinterval-question/193812/1 "2006-07-18T16:14:56Z")

</div>

I’m having trouble getting this to work properly. I want the ‘box\_grow’ function to run, wait one second and then ‘logo\_mc.play’.  
I’ve messed the code up trying a few things, here is my last try

```auto
//Intro animation of box growing and nav

box_grow(gray_outline);

var intervalID:Number;
gray_outline.onEnterFrame = function() {
clearInterval(intervalID);
intervalID = setInterval(function () {
logo_mc.play();
clearInterval(intervalID);
}, 1000);
};

```

Any suggestions?
