Hi,

I would like to loop a movie twice. How should I write the script?

I add an action to the last frame of the movie, a ball jumping for example which has one layer only. Below are the codes I wrote:

Set Variable:"index" = "1"
If (index < 3)
Go to and Play (1)
Set Variable:"index" = "index + 1"
End If

The above codes seems to cause the movie to loop infinitely. How should I loop a movie twice? And how should I loop a movie that has a lot of layers?


Thanks for your help.