The main problem I had with the health bar not updating was that I had not set health to 100 in the 'On Load' function at the beginning of the Ship class. Try that and see if the bar will update. Also check you have all of the names correct and that the coloured bit in the health bar has been given a name.
I dont think that should matter because when your bar reaches 0 I think the code will bring up the game over menu. At least I imagaine thats what will happen.
An interested concept, I quite like it. Just need to develop it more, polish it off. Also when I get game over and start again the toilets havent been cleared from the screen so sometimes it ends up that the guy hits them as soon as the game restarts. But over all I like the idea, it works well as a proof of concept.
Purelymad I think the answer to your question is the same as with Cloud's. By listing the class name in the properties page flash is trying to find a class with that name, so deleting it should solve the issue. I hope.
Cloud:
"the class or interface "healthmeter" could not be loaded" any ideas
I had this one, just figured it out today. Go into the properties and just delete the name in the 'class' box. The reason it can not load the class is because there is no class for the health bar.
I'm just struggling to get my healbar to update when one of the enemy ship's hits/shoots mine.