Hey guys, i am using the following script to make the clip hide on a collision with my main character in my game, i also want it to change a text value (starts at one) and every time my character collides with the coin (the movieclip that the following script contains), i want it to add 1 point to the number.

The text's instance name is: lvl1_text_inst
How do i get it to add 1 point when the character collides with it?

Actionscript Code:
onClipEvent(enterFrame) {
    if (this.hitTest(_root.blue_lvl1_inst)) {
        _root.lvl1_text_inst += 1;
}
}

onClipEvent(enterFrame) {
    if(this.hitTest(_root.blue_lvl1_inst)) {
        this._visible=false;
}
}

Flash Version: CS5
Actionscript 2.0