# \[FMX\]Shorten movieclip

**URL:** <https://forum.kirupa.com/t/fmx-shorten-movieclip/104124>\
**Category:** Uncategorized\
**Created:** [March 12, 2004, 5:25pm UTC](https://forum.kirupa.com/t/fmx-shorten-movieclip/104124 "2004-03-12T17:25:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Roboto](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Mr\_Roboto](https://forum.kirupa.com/u/Mr_Roboto)\
**Post date:** [March 12, 2004, 5:25pm UTC](https://forum.kirupa.com/t/fmx-shorten-movieclip/104124/1 "2004-03-12T17:25:36Z")

</div>

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?
