# Factory pattern with differing parameters

**URL:** <https://forum.kirupa.com/t/factory-pattern-with-differing-parameters/224284>\
**Category:** flash\
**Created:** [April 30, 2007, 9:52pm UTC](https://forum.kirupa.com/t/factory-pattern-with-differing-parameters/224284 "2007-04-30T21:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkum](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arkum/32/1951_2.png) [@arkum](https://forum.kirupa.com/u/arkum)\
**Post date:** [April 30, 2007, 9:52pm UTC](https://forum.kirupa.com/t/factory-pattern-with-differing-parameters/224284/1 "2007-04-30T21:52:08Z")

</div>

Hi,

Is there a way to approach a factory pattern where the items objects being created have different parameters. I suppose I could pass an object into the create() function and strip out the values to use in the instantiation, but that isn’t typesafe.

Is there another way?

Thanks
