# setInterval comprehension difficulties

**URL:** <https://forum.kirupa.com/t/setinterval-comprehension-difficulties/71859>\
**Category:** flash\
**Created:** [November 30, 2004, 4:52am UTC](https://forum.kirupa.com/t/setinterval-comprehension-difficulties/71859 "2004-11-30T04:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graylensman](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@graylensman](https://forum.kirupa.com/u/graylensman)\
**Post date:** [November 30, 2004, 4:52am UTC](https://forum.kirupa.com/t/setinterval-comprehension-difficulties/71859/1 "2004-11-30T04:52:35Z")

</div>

Okay, maybe I’m a dummy, but I can’t comprehend how to use setInterval. I think this is what I need to use to do what I want to do, as shown in the ActionScript (2.0) I’ve pasted here:

bhold.buttonBlue.onPress = function() {  
if (ohpNameRed.\_y == 0) {  
MoveNameDn(ohpNameRed, 60, .3);  
//i want a second or so delay before the following code is executed MoveNameUp(ohpNameBlue, 0, .4);  
FadeClip(small\_butts, “in”);  
} else {  
MoveNameUp(ohpNameBlue, 0, .4);  
FadeClip(small\_butts, “in”);  
}  
};

The commented line tells what I want to achieve. I’ve searched for all tutorials, etc. regarding this, and there’s something eluding me… so call me stupid if you’d like… Just lend a hand! 😛

thanks in advance!
