# Create many sprites of the same kind

**URL:** https://forum.kirupa.com/t/create-many-sprites-of-the-same-kind/283072
**Category:** Uncategorized
**Created:** [March 2, 2009, 11:38am UTC](https://forum.kirupa.com/t/create-many-sprites-of-the-same-kind/283072 "2009-03-02T11:38:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hut](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hut](https://forum.kirupa.com/u/hut)
#### Post date: [March 2, 2009, 11:38am UTC](https://forum.kirupa.com/t/create-many-sprites-of-the-same-kind/283072/1 "2009-03-02T11:38:28Z")

</div>

Hi kirupa forum!

I’m developing flash applications in actionscript with a simple text editor rather than the gui flash fx mx whatever-they’re-called and it’s working out quite well. But there is one particular feature that I don’t know about how to use without such a flash-creating-application.

Is it possible to maintain some kind of a library of movieclips? (drawn with the graphics class) In such a way that you can create an instance of it without having to draw it all over again, just copy it?

right now I’m using something like this:

```php
function drawACar():MovieClip {
    var car:MovieClip;
    /* draw it */
    return car;
}

var shortCar:MovieClip = drawACar();
var longCar:MovieClip = drawACar();
longCar.width *= 2;

```

any idea how i could create hundreds of such cars without having to draw them hundreds of times? I thought about copying them but that doesn’t seem to be possible.
