Skip to main content
September 1, 2010
Question

Targeting a specific frame on a specific movieclip

  • September 1, 2010
  • 1 reply
  • 860 views

Hi,

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.

The way the timeline is built is as so:

content_mc > cont > (more mcs) > smallbutton

This seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.

How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?

This is for AS 2.0

So far I'm at:

on (release) {
    _root.gotoAndPlay("cont");
    _root.smallbutton.gotoAndPlay(5);

}

Any help is greatly appreciated.

Thanks.

This topic has been closed for replies.

1 reply

Inspiring
September 1, 2010

I'm not very sure if I red you correctly, anyway try this on your smallbutton;

//on your smallbutton

on (release) {

    _root.content_mc.cont.gotoAndPlay(5);

}

September 1, 2010

This doesn't seem to be working.


September 1, 2010

I'm not sure if I read you correctly... try this...

on (release) {

     _root.content_mc.gotoAndPlay("cont");

     _root.smallbutton.gotoAndPlay(5);

}