Guest_imported
New member
- Jan 1, 1970
- 0
i have a recursive function to animate an object. It is defined as:
function MoveOBJ(OBJECT, x)
{
...
}
i was trying to use this line to recursivly call the function:
setTimeout('MoveOBJ(' + OBJECT + ', ' + x + ')', 50);
but it doesn't work. Although this line of code does work:
MoveOBJ(OBJECT, x);
Does anyone have any idea why the setTimeout code will not work?
function MoveOBJ(OBJECT, x)
{
...
}
i was trying to use this line to recursivly call the function:
setTimeout('MoveOBJ(' + OBJECT + ', ' + x + ')', 50);
but it doesn't work. Although this line of code does work:
MoveOBJ(OBJECT, x);
Does anyone have any idea why the setTimeout code will not work?