[Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread ACE Flash
Hi there, Is there a way to check if my recursive function is finished and exited? so I could call another function once it finished. As an example below, it could be any number instead of 5 in my program, I am wondering there is a listener can be use for monitoring a Recursive Function. Is that

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread Glen Pike
Hi, Recursive functions will block execution - they are not Asynchronous, so when they have finished your program code will continue to execute, so if your code after the function is not executing, you are probably stuck in the recursive function... Best to have a limit that you keep

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread Paul Andrews
finished here Paul - Original Message - From: ACE Flash [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, April 25, 2008 3:59 PM Subject: [Flashcoders] How to check Recursive Function is finished Hi there, Is there a way to check if my recursive function is finished

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread Jason Lutes
I occasionally place code at the end of the function to detect when it's not being invoked by itself. function someCallingFunction():Void { this.recursiveFunction(val_1, val_2, val_3); } function recursiveFunction(arg_1, arg_2, arg_3):Void { while (some condition exists) { //

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread Paul Andrews
- Original Message - From: Jason Lutes [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 25, 2008 6:09 PM Subject: Re: [Flashcoders] How to check Recursive Function is finished I occasionally place code at the end of the function to detect

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread ACE Flash
: [Flashcoders] How to check Recursive Function is finished I occasionally place code at the end of the function to detect when it's not being invoked by itself. Then you are just avoiding creating two functions by adding special conditions to one function. You are essentially doing the following