# \_currentframe help please

**URL:** <https://forum.kirupa.com/t/-currentframe-help-please/218476>\
**Category:** flash\
**Created:** [March 8, 2007, 2:20am UTC](https://forum.kirupa.com/t/-currentframe-help-please/218476 "2007-03-08T02:20:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosizzle](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cosizzle/32/2718_2.png) [@Cosizzle](https://forum.kirupa.com/u/Cosizzle)\
**Post date:** [March 8, 2007, 2:20am UTC](https://forum.kirupa.com/t/-currentframe-help-please/218476/1 "2007-03-08T02:20:57Z")

</div>

Hey,

Im trying to get my text to change depending on the playhead in another MC. This is my code… someone have a peak at what may be wrong

```auto
btn.onPress = function() {
    ball.gotoAndPlay("start");
    if (_root.ball._currentframe>2) {
        _root.txtArea.text = "Hello Ball!";
    } else if (_root.ball._currentframe<10) {
        _root.txtArea.text = "Goodbye Ball.";
    }
};

```
