# Delay in Code

**URL:** https://forum.kirupa.com/t/delay-in-code/253508
**Category:** programming
**Created:** [March 2, 2008, 5:45am UTC](https://forum.kirupa.com/t/delay-in-code/253508 "2008-03-02T05:45:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Lord\_Rahl](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@Lord\_Rahl](https://forum.kirupa.com/u/Lord_Rahl)
#### Post date: [March 2, 2008, 5:45am UTC](https://forum.kirupa.com/t/delay-in-code/253508/1 "2008-03-02T05:45:40Z")

</div>

Wow, okay. I’v been away from flash for so long that I have forgotten alot of material. I have so far been able to remember or reason out how to do most things, but I have been having problems causing a delay in my code from the main timeline. I have a function on the main timeline and I wanted it to have a 1-2 second delay before it follows through with the code everytime the function is called. Anyone mind giving me a hand?
