# Buttons within other movies?

**URL:** <https://forum.kirupa.com/t/buttons-within-other-movies/26527>\
**Category:** flash\
**Created:** [July 23, 2003, 9:33pm UTC](https://forum.kirupa.com/t/buttons-within-other-movies/26527 "2003-07-23T21:33:17Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [July 23, 2003, 11:08pm UTC](https://forum.kirupa.com/t/buttons-within-other-movies/26527/21 "2003-07-23T23:08:24Z")

</div>

im using \_root.clipname.gotoandplay(frame)

as the tell target to play the clip, what I think its doing is looking in the “Main” movie to play the clip, instead of “advertisement” where the clip is located

---

<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:** [July 23, 2003, 11:10pm UTC](https://forum.kirupa.com/t/buttons-within-other-movies/26527/22 "2003-07-23T23:10:46Z")

</div>

Your getting confused with the term ‘tell target’. Tell target is a deprecated method from before flash 5. Instead from Flash 5 onwards they use of dot syntax i.e \_root.clipname.gotoandplay(frame) is used.

Well you’ve got buttons in a mc, thats in a mc thats on the \_root. Then that is loaded into a different swf. So you still need to reference the full path to it. But i’m trying something to make it shorter.

V.

---

<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:** [July 23, 2003, 11:23pm UTC](https://forum.kirupa.com/t/buttons-within-other-movies/26527/23 "2003-07-23T23:23:04Z")

</div>

This is what i put for the first thumbnail button:

[AS]on (release) {  
\_root.contents1.contents2.NTC1.gotoAndStop(1);  
\_root.contents1.contents2.panda1.gotoAndStop(1);  
\_root.contents1.contents2.WWC1.gotoAndStop(1);  
\_root.contents1.contents2.Task1.gotoAndStop(1);  
\_root.contents1.contents2.TODL1.gotoAndStop(1);  
\_root.contents1.contents2.TSW1.gotoAndStop(1);  
\_root.contents1.contents2.ES1.gotoAndPlay(2);  
}[/AS]

So \_root.contents1.contents2.theClipName.gotoAndPlay(2); is the relative path from the main1.swf through to the movie clip in the advertisements.swf.

Hope that helps.  
Viru.

P.S I’m going to work on a more code efficient way that isnt so dependent on path, but will do the same thing.

---

<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:** [July 23, 2003, 11:28pm UTC](https://forum.kirupa.com/t/buttons-within-other-movies/26527/24 "2003-07-23T23:28:26Z")

</div>

awesome! thank you!

[Previous page](https://forum.kirupa.com/t/buttons-within-other-movies/26527.md?page=1)
