# Target one mc from another mc

**URL:** <https://forum.kirupa.com/t/target-one-mc-from-another-mc/294385>\
**Category:** Uncategorized\
**Created:** [August 13, 2009, 10:48am UTC](https://forum.kirupa.com/t/target-one-mc-from-another-mc/294385 "2009-08-13T10:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerohero](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zerohero/32/36_2.png) [@zerohero](https://forum.kirupa.com/u/zerohero)\
**Post date:** [August 13, 2009, 10:48am UTC](https://forum.kirupa.com/t/target-one-mc-from-another-mc/294385/1 "2009-08-13T10:48:41Z")

</div>

Hi all,

I am a bit stumped…

I have a movieclip “mc1” with a button inside of it “button1”

I am loading a .swf into a movieclip “mc2” in the movie, I want button1 to tell my loaded .swf’s mc to go to and stop at frame label “home”

heres what i have come up with thanks to tutes:

```auto

var loadMc2:Loader = new Loader();
loadMc2.load(new URLRequest("mainContent.swf"));

loadMc2.contentLoaderInfo.addEventListener(Event.COMPLETE, mc2Loaded);
	
function mc2Loaded(e:Event):void
{	
	trace("mc2 Loaded")
}

mc2.addChild(loadMc2);

```

and heres the button:

```auto

mc1.button1.addEventListener(MouseEvent.CLICK, button1Clicked);

function button1Clicked(evtObj:MouseEvent){
	this.mc2.loadMc2.gotoAndStop("home");
}

```

but i get the following error:

TypeError: Error #1010: A term is undefined and has no properties.  
at index\_fla::MainTimeline/button1Clicked()

am i seriously missing the point… it feels so… ;(

cheers
