# Attach extra data to movieClip?

**URL:** https://forum.kirupa.com/t/attach-extra-data-to-movieclip/255916
**Category:** flash
**Created:** [March 28, 2008, 6:55am UTC](https://forum.kirupa.com/t/attach-extra-data-to-movieclip/255916 "2008-03-28T06:55:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![salamflash](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@salamflash](https://forum.kirupa.com/u/salamflash)
#### Post date: [March 28, 2008, 6:55am UTC](https://forum.kirupa.com/t/attach-extra-data-to-movieclip/255916/1 "2008-03-28T06:55:15Z")

</div>

Hi,

Is it possible to attach some extra value/variable to movieclip?  
for example, my\_mc.\_somedata = “1”; // it would be integers between 0-xxxx

What I’m trying to do with that:  
When you click movieclip, it sets selectedIndex in a list component.  
(That list index\_number would be “saved” on the movieclip, so I dont need search ‘for…next’ the whole list everytime movieClip is clicked…)

\*edit: Ok works now, I dont need to add extra values, I just set ‘onClick’ to select the correct index for every movieclip.
