Skip to main content
sergey_landar
Inspiring
May 12, 2010
Question

how to call the function 5 times

  • May 12, 2010
  • 1 reply
  • 510 views

hi

i have a function 'a'  with array 1x2, 1x3, 1x4...

every step its 1x2 > answer

1x3 > answer..

ans so on

if answer correct i call my function 'a' again.

how i can call my function 'a' just 3 times?

thank you.

This topic has been closed for replies.

1 reply

sergey_landar
Inspiring
May 12, 2010

var a:Number = 0;

a = a + 1;
               if (a > 2)
               {
                    gotoAndStop('stop');
               }

this is correct way?

Inspiring
May 13, 2010

Hello!

Well, it depends on some factors, like:

1) Function 'a' itself checks if the answer is correct?

2) Which event calls function 'a'?

... and so on.

Please, if you could detail your problem and maybe post some code, it will be easier for us to understand it and help you :-).

Message was edited by: rah02