# Wait in actionscript

**URL:** <https://forum.kirupa.com/t/wait-in-actionscript/209658>\
**Category:** flash\
**Created:** [December 11, 2006, 9:53am UTC](https://forum.kirupa.com/t/wait-in-actionscript/209658 "2006-12-11T09:53:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoil](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@Zoil](https://forum.kirupa.com/u/Zoil)\
**Post date:** [December 11, 2006, 9:53am UTC](https://forum.kirupa.com/t/wait-in-actionscript/209658/1 "2006-12-11T09:53:34Z")

</div>

Hi!  
How can i put a command for wait 2 second in actionscript, i’m a noob in AS, i have to put a text from an external file but i have to wait 2 seconds or 50 fotograms.

this is my code:

var loading = new LoadVars();  
loading.load(“LOL.txt”);  
loading.onLoad = function (success)  
{  
if (success)  
{  
\_root.text1.text = loading.text;  
}  
}

Thx for help
