# If (\_root.\_currentframe != 6){ is not working! (stomps foot like little kid)

**URL:** <https://forum.kirupa.com/t/if--root--currentframe-6-is-not-working-stomps-foot-like-little-kid/212135>\
**Category:** Uncategorized\
**Created:** [January 8, 2007, 8:05pm UTC](https://forum.kirupa.com/t/if--root--currentframe-6-is-not-working-stomps-foot-like-little-kid/212135 "2007-01-08T20:05:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalewb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dalewb/32/3029_2.png) [@dalewb](https://forum.kirupa.com/u/dalewb)\
**Post date:** [January 8, 2007, 8:05pm UTC](https://forum.kirupa.com/t/if--root--currentframe-6-is-not-working-stomps-foot-like-little-kid/212135/1 "2007-01-08T20:05:12Z")

</div>

Hi folks,  
In my artist’s mind, this code should work, but doesn’t. Am I missing something? I’m simply trying to disable the button “cardSearchBtn” when the root timeline enters frame 6 (along with two other play actions).

```auto

if (_root._currentframe != 6){
    cardSearchBtn.enabled = true;
    cardSearchBtn.onRelease = cardSearchBtn.onReleaseOutside = function(){
        _root.searchPanelMC.play();
        _root.play();
    }
}else{
    cardSearchBtn.enabled = false;
}

```

Thanks.
