# Getting an attached Movieclips name

**URL:** <https://forum.kirupa.com/t/getting-an-attached-movieclips-name/26564>\
**Category:** flash\
**Created:** [July 24, 2003, 8:22am UTC](https://forum.kirupa.com/t/getting-an-attached-movieclips-name/26564 "2003-07-24T08:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DumbMonkey](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@DumbMonkey](https://forum.kirupa.com/u/DumbMonkey)\
**Post date:** [July 24, 2003, 8:22am UTC](https://forum.kirupa.com/t/getting-an-attached-movieclips-name/26564/1 "2003-07-24T08:22:45Z")

</div>

Hi,  
In MX, how can you tell if a movieclip has had another clip attached to it:  
I have a number of clips called FeatureMovie1\_mc…  
and when pressed -

FeatureMovie1\_mc.onRelease = function()  
{  
FeatureMovie1\_mc.attachMovie(“L”, “Symbol\_mc”, 0);  
}

I need to prevent this code being called more than once when the clip gets pressed again, but using \_name of valueOf() just  
return “FeatureMovie1\_mc”.  
Does anyone have any ideas?  
Much appreciated,  
DumbMonkey.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 8:30am UTC](https://forum.kirupa.com/t/getting-an-attached-movieclips-name/26564/2 "2003-07-24T08:30:28Z")

</div>

Couldn’t you do somehting like this:

```auto

FeatureMovie1_mc.onRelease = function() {
      if(!Check) {
            FeatureMovie1_mc.attachMovie("L", "Symbol_mc", 0);
            Check = true;
      }
}

```
