Buttons within other movies?

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

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.

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.

awesome! thank you!