# Where am i making mistake?

**URL:** https://forum.kirupa.com/t/where-am-i-making-mistake/292312
**Category:** Uncategorized
**Created:** [July 13, 2009, 8:33am UTC](https://forum.kirupa.com/t/where-am-i-making-mistake/292312 "2009-07-13T08:33:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)
#### Post date: [July 13, 2009, 8:33am UTC](https://forum.kirupa.com/t/where-am-i-making-mistake/292312/1 "2009-07-13T08:33:01Z")

</div>

Hi friends,  
I got stuck… please help.

```php
on (release)

{
    //THIS WORKS PERFECTLY FINE
    if (_parent.button2!= "s1")
    {
        _parent.button2 = "s1";
       this.gotoAndPlay("s1");
    } // end if
    
    
    
//THIS DOESN'T WORK: WHERE AM I MAKING MISTAKE?    
if (_parent.button1 != "s1")
    {
        _parent.button1 = "s1";
       _parent.button1.gotoAndPlay("s1");
    } // end if
    
    
    
    
}

```
