# Sending class name to another class

**URL:** <https://forum.kirupa.com/t/sending-class-name-to-another-class/295650>\
**Category:** Uncategorized\
**Created:** [September 2, 2009, 12:36pm UTC](https://forum.kirupa.com/t/sending-class-name-to-another-class/295650 "2009-09-02T12:36:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [September 2, 2009, 12:36pm UTC](https://forum.kirupa.com/t/sending-class-name-to-another-class/295650/1 "2009-09-02T12:36:07Z")

</div>

I have a movieclip in a library with a class name: **menuItemMC**

now I want to send this to another class:

var myClass:CustomClass = new CustomClass( **menuItemMC** );

and then in that class I need to use this like:

//contructor  
public function CustomClass ( **menuItem:** \* );

var customID:\*\*menuItem;  
**customID** = new \*\*\*\*menuItem();  
\*\*  
I tried something like this, but its not working…how do I receive this and use it from there?
