;

PDA

Click to See Complete Forum and Search --> : Loop parameter


gmorrison
07-02-2002, 11:40 PM
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.

bridelh
07-03-2002, 01:25 AM
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

--

gmorrison
07-03-2002, 10:56 AM
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.

Bob Hartzell
07-03-2002, 11:31 AM
It is in the control group titled Actions for Selected Frame. Click on the +, select Advanced, select Action Script.

gmorrison
07-09-2002, 10:57 AM
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.

Bob Hartzell
07-09-2002, 12:33 PM
Switch to the Advanced Skills interface in Preferences.

gmorrison
07-09-2002, 12:56 PM
Yep. There it is thanks.