# Delays?

**URL:** <https://forum.kirupa.com/t/delays/8257>\
**Category:** flash\
**Created:** [November 16, 2002, 8:32pm UTC](https://forum.kirupa.com/t/delays/8257 "2002-11-16T20:32:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fez](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fez](https://forum.kirupa.com/u/fez)\
**Post date:** [November 16, 2002, 8:32pm UTC](https://forum.kirupa.com/t/delays/8257/1 "2002-11-16T20:32:49Z")

</div>

Ive been trying forever to use formulas to make patterns. it works fine, the only problem is it never shows the patterns actually being drawn, it just pops up with the completed design. ive tried the same method in c++ and it worked fine with a conditional and a short delay but i can figure it out in flash mx. also is the random number script anywhere along the lines of  
1+random(345)  
because that is the same code for c++  
thanks in advance for any help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2002, 9:17pm UTC](https://forum.kirupa.com/t/delays/8257/2 "2002-11-16T21:17:45Z")

</div>

Not too sure how to fix your problem, but the random script in Flash is like…

1+Math.random()\*345

of if you want whole numbers instead of numbers with like 8 decimal places you can do this…

1+Math.round(Math.random()\*345)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 17, 2002, 12:25am UTC](https://forum.kirupa.com/t/delays/8257/3 "2002-11-17T00:25:10Z")

</div>

Thanks, that answered one of my questions at least.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 17, 2002, 10:35am UTC](https://forum.kirupa.com/t/delays/8257/4 "2002-11-17T10:35:30Z")

</div>

you problem is that your probably calculating the whole thing in a single loop or something like it…if you were to replace the loop with an onEnterFrame, it would show each of your things being drawn. Could you please post ur code for further help 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 18, 2002, 11:49pm UTC](https://forum.kirupa.com/t/delays/8257/5 "2002-11-18T23:49:09Z")

</div>

i figured it out. thank all
