View Single Post
Old 31st May 2005, 02:45   #4
gbr
Senior Member
 
Join Date: Nov 2004
Location: Mumbai ( Bombay ), India
Posts: 143
I think I solved the prob, will have to check it out.

The ( incorrect ) code I was using earlier went someting like this :

butn.onEnterArea()
{
while ( condition c == false )
{
timer.setdelay(1);
timer.start();
}
}

timer.onTimer() // this is function f ( mentioned above)
{
timer.stop();

move drawer 1 step;

if ( something )
set condition c = true;
}

The prob was that the while would continue looping even before function f was executed. At least that's what I think, correct me if I'm wrong.

Only a newbie like me would have missed the obvious/simple solution, which I haven't yet tested but am 99% sure it will work.

btw, does the MAKI scripting language allow recursion ?

Thanks.

What ?!!! ... you ... errr ... want to know the solution ?
You'll have to ask.
gbr is offline   Reply With Quote