# Creating frames in movieclips with AS?

**URL:** https://forum.kirupa.com/t/creating-frames-in-movieclips-with-as/247257
**Category:** flash
**Created:** [December 20, 2007, 3:00am UTC](https://forum.kirupa.com/t/creating-frames-in-movieclips-with-as/247257 "2007-12-20T03:00:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pola](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Pola](https://forum.kirupa.com/u/Pola)
#### Post date: [December 20, 2007, 3:00am UTC](https://forum.kirupa.com/t/creating-frames-in-movieclips-with-as/247257/1 "2007-12-20T03:00:58Z")

</div>

Is it possible to add frames to a movieclipp with actionscript? I’ve got many sprite animations with varied frame counts. What I would like to do is create a movieclip in actionscript and add frames based on the animations amount of frames.

eg.  
**Animation A**  
_walk1.0.body.png_  
_walk1.1.body.png_  
_walk1.2.body.png_  
_walk1.3.body.png_

**Animation B**  
_alert.0.body.png_  
_alert.1.body.png_  
_alert.2.body.png_

Instead of seperate movieclips in the library for each with the right frame counts is it possible to dynamically create a movie clip and add the frames all in actionscript?
