PDA

View Full Version : gotoAndPlay(previous?)???



unchew
May 18th, 2005, 07:39 PM
I have abutton that makes a movieclip in the main timeline go to the prevous frame... but it doeasn't work. Here is the code please help.

on(release){
_root.pregunticas.gotoAndStop(prevFrame);
}

It shows no errors in the output panel... so please help.

Ty

SmoothDime
May 18th, 2005, 09:54 PM
either the path for your movieClip is wrong or your prevFrame variable is wrong.

trace the prevFrame variable and try something more simple like going to a specific frame like 1. once you get that working then add the prevFrame.

you can also use _mc.prevFrame();

unchew
May 18th, 2005, 09:55 PM
thanks for your reply... i'll try that!

999
May 18th, 2005, 09:59 PM
_root.pregunticas.prevFrame();
No stop action required.