# Contriling a movie clip from a movie clip

**URL:** <https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416>\
**Category:** Uncategorized\
**Created:** [May 26, 2004, 7:37pm UTC](https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416 "2004-05-26T19:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chymx2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chymx2/32/557_2.png) [@chymx2](https://forum.kirupa.com/u/chymx2)\
**Post date:** [May 26, 2004, 7:37pm UTC](https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416/1 "2004-05-26T19:37:32Z")

</div>

Hi =)

ok here is what I am doing and need help with.

on my main time line I have 2 movie clips. I have a movie clip that contains all my navigation that is avaibe at all times.

and on frame 15 I have a movieclip that is an empty container (called “container”)that has a external swf files being loaded into it (portfolio.swf)

in my navigation movieclip I have a button that reads  
on (release) {  
\_root.gotoAndStop(15);  
}

perfect! does exactly what I want it to, now…  
I have another button in the same navigation movieclip that I want to do the same thing but I want it to go to frame 2 of the portfolio.swf instead of starting at frame 1.

hope I have given enough info, thanks in advance

---

<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:** [May 26, 2004, 7:42pm UTC](https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416/2 "2004-05-26T19:42:44Z")

</div>

Untested, but should work in theory . . . :beam:  
on 2nd button:

```auto

on(release){
_root.container.gotoAndStop(2);
}

```

Of course, this will only work if portfolio.swf is already loaded into container. And assumes that you want to go to frame 2 of the maintimeline of portfolio.swf, and not some movie clip INSIDE of portfolio.swf

:hr:

---

<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:** [May 26, 2004, 8:01pm UTC](https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416/3 "2004-05-26T20:01:13Z")

</div>

> [@lunatic](#):
>
> Untested, but should work in theory . . . :beam:  
> on 2nd button:
> 
> ```auto
> 
> on(release){
> _root.container.gotoAndStop(2);
> }
> 
> ```
> 
> Of course, this will only work if portfolio.swf is already loaded into container. And assumes that you want to go to frame 2 of the maintimeline of portfolio.swf, and not some movie clip INSIDE of portfolio.swf
> 
> :hr:

so if it were in a movieclip inside of portfolio.swf (called “slideshow” lets say) would it then be

on(release){  
\_root.container.slideshow.gotoAndStop(2);  
}

thanks for your help

---

<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:** [May 26, 2004, 8:36pm UTC](https://forum.kirupa.com/t/contriling-a-movie-clip-from-a-movie-clip/111416/4 "2004-05-26T20:36:09Z")

</div>

Yep! Start from the outside and work your way in. It’s like those little nested doll things. The biggest one on the outside is \_root and refers to the main fla you are working with. Then you just start digging in until you reach the smallest one in the middle - the movie clip you want to apply the action to.

:hr:
