# Referencing an MC from attachMovie

**URL:** <https://forum.kirupa.com/t/referencing-an-mc-from-attachmovie/220220>\
**Category:** flash\
**Created:** [March 23, 2007, 7:43pm UTC](https://forum.kirupa.com/t/referencing-an-mc-from-attachmovie/220220 "2007-03-23T19:43:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw2006](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mw2006](https://forum.kirupa.com/u/mw2006)\
**Post date:** [March 23, 2007, 7:43pm UTC](https://forum.kirupa.com/t/referencing-an-mc-from-attachmovie/220220/1 "2007-03-23T19:43:44Z")

</div>

Hi all, quick question – I’m confused as to how to reference a movieclip after using the attachMovie method. Here is my code:

```auto

box1.onRelease = function():Void {
    activateBigBox();
    bigBox.dtBigBox.textbox.text = "portfolio";
    attachMovie("textbox1", "mcTextBox1", this.getNextHighestDepth(), {_x: 175, _y:-8.3});
};

```

now, if I want to reference that mcTextBox1 movieclip for an onRelease function how would I call it?? everytime I try to use

box1.mcTextBox1.onRelease = function():Void…

nothing seems to work!! Thanks in advance for any help!
