# Need help understanding classes

**URL:** <https://forum.kirupa.com/t/need-help-understanding-classes/321756>\
**Category:** flash\
**Created:** [April 29, 2011, 8:51pm UTC](https://forum.kirupa.com/t/need-help-understanding-classes/321756 "2011-04-29T20:51:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [April 29, 2011, 8:51pm UTC](https://forum.kirupa.com/t/need-help-understanding-classes/321756/1 "2011-04-29T20:51:25Z")

</div>

Ok, so I want to “attach” a variable to a movieclip, do I need to create the movieclip in the class file?

What I have is a movieclip in the library that is placed on stage multiple times. What I would like to do is have a class that when one of the movieclips is clicked, will add a variable to that particular instance of the movieclip.
