slowing down a loop in a recursive function
        Posted  
        
            by eco_bach
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by eco_bach
        
        
        
        Published on 2010-05-02T21:05:46Z
        Indexed on 
            2010/05/02
            21:18 UTC
        
        
        Read the original article
        Hit count: 220
        
I have a difficult problem with a recursive function. Essentially I need to 'slow down' a for loop within a function that repeatedly calls itself(the function); Is this possible, or do I need to somehow extract the recursive nature of the function?
function callRecursiveFuncAgain(ob:Object):void{
    //do recursive stuff;
    for (var i:int = 0; i < 4; i++) {
        _nextObj=foo
    callRecursiveFuncAgain(_nextObj);
    }
}
© Stack Overflow or respective owner