I want my animation to loop 3 times. I know I can duplicate the frames 3 times, but is there a way to do this in the parameter? I have looked at the help file but did find anything.
Printable View
I want my animation to loop 3 times. I know I can duplicate the frames 3 times, but is there a way to do this in the parameter? I have looked at the help file but did find anything.
You can do it with ActionScript:
Select the last frame of your movie.
Open the sound and actions panel (ctrl + e)
Click on the "+" at bottom right (add action)
click "Advanced" > "ActionScript..."
In the window that opens, type (or copy/paste) this code:
numOfLoops = numOfLoops + 1;
if (numOfLoops == 3){
stop();
}
Click "Ok" then "Close"
Test your movie....
Should work ok - but...
to do this properly, put the following actionscript On frame 1 ( I will have the purists after me if I didn't tell you this bit!)
var numOfLoops;
Hilary
--
I am running 3.20, when I do a ctrl-e I get the window, but there is no + in lower right. There is a + in the middle left but it won't won't open a window to paste in the code.
It is in the control group titled Actions for Selected Frame. Click on the +, select Advanced, select Action Script.
Yep, been there.
There is the Actions for Selected Frames.
When I click on the + I get the following options only:
Go To Frame....
Play Movie
Stop Movie
Stop Sounds
I cannot find your selections anywhere.
If I go to the help index, I do not get a hit on Action or Script.
Switch to the Advanced Skills interface in Preferences.
Yep. There it is thanks.