PDA

View Full Version : Delays?



fez
November 16th, 2002, 03:32 PM
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

lostinbeta
November 16th, 2002, 04:17 PM
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)

fez
November 16th, 2002, 07:25 PM
Thanks, that answered one of my questions at least.

Bezzer
November 17th, 2002, 05:35 AM
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 :)

fez
November 18th, 2002, 06:49 PM
i figured it out. thank all