# \[AS3\] Waiting on a frame for a random duration?

**URL:** <https://forum.kirupa.com/t/as3-waiting-on-a-frame-for-a-random-duration/225688>\
**Category:** flash\
**Created:** [May 14, 2007, 10:29pm UTC](https://forum.kirupa.com/t/as3-waiting-on-a-frame-for-a-random-duration/225688 "2007-05-14T22:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingscooty](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kingscooty](https://forum.kirupa.com/u/kingscooty)\
**Post date:** [May 14, 2007, 10:29pm UTC](https://forum.kirupa.com/t/as3-waiting-on-a-frame-for-a-random-duration/225688/1 "2007-05-14T22:29:32Z")

</div>

Wow, i really don’t understand AS3 lol.

I’m looking to pause on frame 1 of a movieclip for a random amount of time before playing frame 2 and the rest of the movie. This will thus repeat and the movie will play at random intervals.

I really havn’t a clue how to set this up in AS3 format so any help would be appreciated 😃

Also, how do i convert this simple line of AS2 code into a working piece of AS3 code? lol

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]Stage[/COLOR].[COLOR=#0000FF]showMenu[/COLOR] = [COLOR=#000000] **false** [/COLOR];

```

[/LEFT]  
[/FONT]

Thanks guys 🙂
