# Button problem

**URL:** https://forum.kirupa.com/t/button-problem/311057
**Category:** Uncategorized
**Created:** [June 26, 2010, 12:02pm UTC](https://forum.kirupa.com/t/button-problem/311057 "2010-06-26T12:02:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![seph4](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@seph4](https://forum.kirupa.com/u/seph4)
#### Post date: [June 26, 2010, 12:02pm UTC](https://forum.kirupa.com/t/button-problem/311057/1 "2010-06-26T12:02:31Z")

</div>

Well , hello!  
I am making a flash project but i have a problem:ex:  
For example , I have 2 movie clips : “Help” and “Contact”  
and I have made a input text field “search” (var=search\_field).  
There i also a button “go\_btn”.  
I put on button that script

```auto
on(press) {
if(_root.search_field =='help')
{
    _root.Help._visible = true;
}
else
{
    _root.Contact._visible = true;
}
}

```

But here is the problem.  
Either if a write help or anything else it shows me the Contact movie clip.  
When i change the “==” to “=” it show me Help movie clip for anyone word.  
Please help me .
