Variable problem

hi there,

I try to include a variable in gotoandplay(); like:

on (press) {
gotoAndPlay(_root.strScene, 1);
}

it gives me an error and say it must be quted, i tryed everything and im sick of it and i will breack my pc and shoot my self if no one helped me :sketchy:

The first parameter is a string holding the name of the scene to go to. So try this:


on (press) {
gotoAndPlay("strScene", 1);
}

Or … now that I think about it, are you trying to make the movieclip strScene to gotoAndPlay frame 1 instead of the scene strScene ? If so, use this:


on (press) {
_root.strScene.gotoAndPlay(1);
}

:slight_smile: