# Action script problem

**URL:** <https://forum.kirupa.com/t/action-script-problem/211574>\
**Category:** Uncategorized\
**Created:** [January 3, 2007, 7:43am UTC](https://forum.kirupa.com/t/action-script-problem/211574 "2007-01-03T07:43:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [January 3, 2007, 7:43am UTC](https://forum.kirupa.com/t/action-script-problem/211574/1 "2007-01-03T07:43:11Z")

</div>

i have made a button and I have given it this AS  
ActionScript Code:

```auto

on (release){
    if (_root.cht="give"){
        _root.cht==""
        _root.inv==true
        _root.chtst=="invincible"
    }
}

```

I cant get it to where I release the button a seprate dynamice text box equals invincible and that the text box that you typed in (\_root.cht) equals nothing. plz help
