Changing money value

How do I change the value of the money I’m using in my game. Here’s my code.


  onClipEvent (enterFrame) {
  
  if (_root.hero.hitTest (this)) {
  
  _root.money++;
  this._x = -50;
  this._y = -50;
  
  }
  
  }