ok, man, obviously you dont understand how this works. Which is ok. We all learn somewhere.
:are you ready to learn??!!
Ok. Here.
Make a bar, and put these actions in the bars actions panel
onClipEvent(enterFrame){
this._width=_root.health;
}
there bow put these actions in your player
onClipEvent(enterFrame){
if(this.hitTest(enemy1)==true){_root.healt
h -=10;}}
:this will work
this is telling the player MC that when it touches the instance of 'enemy1' to make the health bar go down ten. Now, ad this to the code.
onClipEvent(enterFrame){
if(_root.health==0){_root.gotoAndStop('gam
eover')}
:there ya go.
So the finished code would be
onClipEvent(enterFrame){if(this.hitTest(
_root.enemy1)==true){
_root.health -=10;}
onClipEvent(enterFrame){if(root.health==0;
){gotoAndStop('gameover')}}
:im pretty sure this will work, i tested it out with Flash MX though
i hope it helped!!!!=P