# Using a

**URL:** <https://forum.kirupa.com/t/using-a/86981>\
**Category:** flash\
**Created:** [April 17, 2005, 1:14pm UTC](https://forum.kirupa.com/t/using-a/86981 "2005-04-17T13:14:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoMarine](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@NeoMarine](https://forum.kirupa.com/u/NeoMarine)\
**Post date:** [April 17, 2005, 1:14pm UTC](https://forum.kirupa.com/t/using-a/86981/1 "2005-04-17T13:14:26Z")

</div>

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?
