I am at a bit of a loss with FS, which I assume is action scripting. This is what I am trying to do:

Frame 1:

Set variable: "counter" = 0

Frame 2:

Set variable: "counter" = "counter" + 1

frame 4:

if (:/counter = 3) go to and play (5)

(frame 4 also has a goto frame 2, following the script)
(and what goes where in the command/argument boxes?)

frame 5 - continues.

The objective being to repeat frames 2-4 three times, rather than create 9 frames (3 sets of 3)

What I get is more action than I expected. Multiple windows opening, faster than I can close them.

I have tried several ways of entering these using the command and argument boxes. All attempts give the same result. A screenful of windows.

So, how many ways have I got it wrong? And what is the right way? Anyone?

Thanks.