My platform game!:(

ok in my game i want a code so that when the default enemy (the square)
comes in collision with spiderman, the health bar up at the top width goes down 10.
Someone Please help!!!

http://media.putfile.com/spideygame44