PDA

View Full Version : targetting the timeline of a movieclip


hrpremier
08-05-2003, 09:19 PM
ok,, prob so easy.

i have a mc with 2 frames. the instance of the movieclip is "m"

when i click a button i want the mc"m" to go to frame 2 and stop.

i have

on (press) {
gotoAndStop("_root.m", 1);
}


is this possible ( of course) and what stoopid thing am i doing wrong?

cheers in advance.

Colin Campbell
08-05-2003, 09:29 PM
on (press) {
_root.m.gotoAndStop(1);
}




that should do the trick

snapple
08-05-2003, 09:29 PM
hrpremier,

outer is instance name of mc1 and inner is instance name of mc2.

Note the frame label is referenced by string (qoutation marks) and the gotoAndPlay is just written like a normal function.

If you wanted a frame label (althought not advisable), you could just use a number and scrap the string.


on(release){
_root.outer.inner.gotoAndPlay("start");
}


snapple :)

Oooooooooo collin14 is in there (serve me right for having a beer whilst typing)

hrpremier
08-05-2003, 09:33 PM
hey thanks guyz!