|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Code:
I would like to ad some code that would delay the execution by x milliseconds, but not sure how to go about it. Any suggestions? |
|
#2
|
|||
|
|||
|
use setInterval.
|
|
#3
|
|||
|
|||
|
moveme = function move(xc,yc,rot) {
// insert delay here boxOne._w = xc; boxOne._y = yc; boxOne._rotation = rot; } timer = setInterval(moveme, 1000); 100 being number of x ms and use : clearInterval(timer); to clear it. detailed explaination at http://www.umbc.edu/interactive/fla...setInterval.php |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > I how would I delay a function? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|