Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to call the function 5 times

Explorer ,
May 12, 2010 May 12, 2010

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.

TOPICS
ActionScript
503
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 12, 2010 May 12, 2010

var a:Number = 0;

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

this is correct way?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 13, 2010 May 13, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines