# AS3 Contronl one movie clip from inside of another movie clip

**URL:** <https://forum.kirupa.com/t/as3-contronl-one-movie-clip-from-inside-of-another-movie-clip/331144>\
**Category:** flash\
**Created:** [May 28, 2013, 6:07pm UTC](https://forum.kirupa.com/t/as3-contronl-one-movie-clip-from-inside-of-another-movie-clip/331144 "2013-05-28T18:07:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmarnob](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Post date:** [May 28, 2013, 6:07pm UTC](https://forum.kirupa.com/t/as3-contronl-one-movie-clip-from-inside-of-another-movie-clip/331144/1 "2013-05-28T18:07:29Z")

</div>

Hi,  
I have two movie clip on the stage(root) say A and B. There is a nested movie clip © inside A movie clip. When I click on C I want movie clip a will gotoAndStop frame 2.  
Could you please help what code should I write on frame 1 inside B movie clip?

I wrote the following code but it not working:  
stop();  
import flash.events.MouseEvent;  
import flash.net.navigateToURL;  
import flash.net.URLRequest;

contact\_mc.addEventListener(MouseEvent.CLICK, showaddress);  
function showaddress(evt:MouseEvent):void  
{  
//address\_mc.gotoAndStop(“2”);  
MovieClip(address\_mc).gotoAndStop(“stayHere”);  
}  
Thank you advance for your help.
