[FMX]Shorten movieclip

I have a movie clip that is about 80 frames. It just cycles through 4 pictures at 20 frames per pic. I want to use actionscript so I can cut down the number of frames. I thought I could use a while loop to do this. Here is what my code looked like:

stop();
x = 0;
while (x<1001) {
x++;
}

if (x == 1000) {
gotoAndStop(2);
}

Would something like this work?