# Set number of frames of MovieClip

**URL:** <https://forum.kirupa.com/t/set-number-of-frames-of-movieclip/308951>\
**Category:** flash\
**Created:** [May 3, 2010, 11:07pm UTC](https://forum.kirupa.com/t/set-number-of-frames-of-movieclip/308951 "2010-05-03T23:07:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [May 3, 2010, 11:07pm UTC](https://forum.kirupa.com/t/set-number-of-frames-of-movieclip/308951/1 "2010-05-03T23:07:33Z")

</div>

Even though I HATE TimeLine based code (despite it being convenient for quick prototypes) I have been dabbing a slight bit in “addFrameScript()”

The problem is, there doesn’t seem to be any way to set the number of frames in a MovieClip via code, and Flash doesn’t automatically adjust the number of frames based on where “addFrameScript” code is located.

I’m not sure what use it would server, **but is it possible to set the number of frames in a MovieClip without using the Flash Professional IDE?**

[SIZE=1]And, as usual, a “No, Andreas. For the n-th time, it is not possible.” response is okay.[/SIZE]
