Game healthbar

i cant seem to get this to work this is the code on the enemy

onClipEvent (load) {
damage = 3;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
healthBar._xscale -= damage;
}
}

but it does not change to healthBar xscale

how can i fix this so it works?