# Create a copy of a class's instance by another class

**URL:** <https://forum.kirupa.com/t/create-a-copy-of-a-classs-instance-by-another-class/250975>\
**Category:** flash\
**Created:** [February 4, 2008, 8:07am UTC](https://forum.kirupa.com/t/create-a-copy-of-a-classs-instance-by-another-class/250975 "2008-02-04T08:07:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![s35590](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@s35590](https://forum.kirupa.com/u/s35590)\
**Post date:** [February 4, 2008, 8:07am UTC](https://forum.kirupa.com/t/create-a-copy-of-a-classs-instance-by-another-class/250975/1 "2008-02-04T08:07:18Z")

</div>

Hi there,

I just wanna create a drag-to-copy script class to copy the existing mc on the stage (created from script) by control+drag and the new mc which is exactly like the original is shown up on a stage at a drop point. What I tried is to register the existing mc to the “drag-drop” class and the “drag-drop” class add functionality of the first class’s instance such as once you drag away existing mc, its copy will be created on the fly. My problem is inside the “drag-drop” class, I dont’ know how to get the reference of the first class mc to get another copy of itself with any property applied to it.

Thanks in advance  
Ponchai
