# Calling function from attachMovie

**URL:** https://forum.kirupa.com/t/calling-function-from-attachmovie/157801
**Category:** Uncategorized
**Created:** [August 4, 2005, 11:59am UTC](https://forum.kirupa.com/t/calling-function-from-attachmovie/157801 "2005-08-04T11:59:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Morix](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Morix](https://forum.kirupa.com/u/Morix)
#### Post date: [August 4, 2005, 11:59am UTC](https://forum.kirupa.com/t/calling-function-from-attachmovie/157801/1 "2005-08-04T11:59:21Z")

</div>

Hi,

I have a button and when you press it it attaches a MC and calls a other function called showProductInfo().

```auto

_root["pod"+i].sub.pinfo.onRelease = function(){
				
				_root.attachMovie("popup", "popuper", i);
				_root.popuper.showInfo(i);
				
			}

```

And in the popop/popuper MC I have the function showInfo(id) in the first frame. But I can’t get it to work.

```auto

function showInfo(id){

this.txt.text = id;

}

```

Am I doing something wrong here
