# How to add a property to a moviecip/class?

**URL:** <https://forum.kirupa.com/t/how-to-add-a-property-to-a-moviecip-class/327286>\
**Category:** flash\
**Created:** [February 19, 2012, 2:09pm UTC](https://forum.kirupa.com/t/how-to-add-a-property-to-a-moviecip-class/327286 "2012-02-19T14:09:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babymouth](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@Babymouth](https://forum.kirupa.com/u/Babymouth)\
**Post date:** [February 19, 2012, 2:09pm UTC](https://forum.kirupa.com/t/how-to-add-a-property-to-a-moviecip-class/327286/1 "2012-02-19T14:09:05Z")

</div>

So i have a movieclip on stage and I addChild(myMovieClip).  
I need all the movieclips to have a number (like the first one i put with be 1, the second 2 and so forth)  
How can I add to the movie clips custom properties like myMovieClip.mynumber  
then give them their numbers when i add them to the stage

addChild(myMovieClip)  
myMovieClip.mynumber = 56;
