# Duplicating Loaded SWFs

**URL:** <https://forum.kirupa.com/t/duplicating-loaded-swfs/244583>\
**Category:** flash\
**Created:** [November 19, 2007, 11:23pm UTC](https://forum.kirupa.com/t/duplicating-loaded-swfs/244583 "2007-11-19T23:23:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karinger](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Karinger](https://forum.kirupa.com/u/Karinger)\
**Post date:** [November 19, 2007, 11:23pm UTC](https://forum.kirupa.com/t/duplicating-loaded-swfs/244583/1 "2007-11-19T23:23:22Z")

</div>

My problem is I have a custom class which uses a Loader class to import an external SWF. I would like to provide a function, getSprite():MovieClip, where when called will return a copy of the SWF within the class. Right now when I call the function, it does not copy the SWF, so rather then getting a new MovieClip object I just get the reference to the stored one.

I’m having difficulty duplicating this clip, trying the new sprite.contructor(), where sprite is the clip I want to dup, results in an empty movie clip.

Any ideas?

Thanks 🙂
