Using a

Hey there… i’m having trouble getting a Button… to when clicked, then inside a movieclip on the stage gotoAndStop at a frame.

I’ve got a variable which equals to “Example” and then on the buttons code its got
if (variable = “example”) {
_root.movieclipname.gotoAndStop(2);
}

However for some reason it doesn’t work.

I’ve also tried making each picture on the stage, and then I hide all the images except the one I want, only the variable doesn’t seem to be equal to anything, even though ‘it is’!
I’m so stumped… please help?