RPG stat bar problem in flash

Hi, i’m really desperate for answers so please if you can reply to my quesiton!

So, i’m making an rpg game in flash using [COLOR=red]ACTIONSCRIPT 2.0[/COLOR] and i wish to have some stat bars for health and etc… now the real problem is that i don’t know how to set a limit on the health bar since i dont want it to exceed 100 nor go less than 0. And also, how can the stat bar shared between all frames meaning that a score achieved in one frame is simultaneusly added to another frame so when the character arrives to that frame the score is correct.

Thanks in advance
#Guwi#