PDA

View Full Version : A Simplier Question


Stefano Sergio
11-28-2007, 04:54 PM
I'll try to semplify the question i asked in the previows post...

Why
this.btn_nextframe.addEventListener(MouseEvent.CLI CK, function() {gotoAndStop(5)});
Get me in frame 5 of the main timeline.

And
gotoAndStop(5);
in the same script just make a movieclip in the scene go to frame 5 and not the main timeline?

ivanparas
11-28-2007, 05:11 PM
You have to reference the movie clip at the gotoAndStop as well as the beginning of the listener. So it would be:


myMovie_mc.btn_nextframe.addEventListener(MouseEve nt.CLICK, function() {myMovie_mc.gotoAndStop(5)});

Stefano Sergio
11-29-2007, 01:16 PM
Yes but i want the MAIN TIMELINE to go to frame 5 without pressing any button... that's what i can't achieve.

LX.Vii
11-29-2007, 01:30 PM
Label the frames to differentiate.