# Creating copies of a dynamic class

**URL:** <https://forum.kirupa.com/t/creating-copies-of-a-dynamic-class/294409>\
**Category:** Uncategorized\
**Created:** [August 13, 2009, 3:16pm UTC](https://forum.kirupa.com/t/creating-copies-of-a-dynamic-class/294409 "2009-08-13T15:16:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachwlewis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zachwlewis/32/350_2.png) [@zachwlewis](https://forum.kirupa.com/u/zachwlewis)\
**Post date:** [August 13, 2009, 3:16pm UTC](https://forum.kirupa.com/t/creating-copies-of-a-dynamic-class/294409/1 "2009-08-13T15:16:58Z")

</div>

I’m working on a particle emitter, and I want to be able to pass in custom sprites (one for smoke, one for fire, _et cetera_). They are instanced on in the library as separate classes, but I want to be able to call a function like, “ParticleEmitter.SetSprite(Smoke)”, then have it start creating instances of the smoke class.

The problem is, I don’t know how to pass in a class name as an argument or how to use it to create copies. Is there any way to do this, or would it be best if I just put all my different particles inside a MovieClip and set the frame for each one it created?

I can link examples if anyone is confused.
