RPG Hud

HI all,

//intro
I’m new too actionscript… I’ve tried learning a few times but something always seems too get in the way :upset:… i think the main reason was that i was just blindly following tutorial after tutorial… then i remembered the way i learned blender(3D modeling program) was too join a forum so here i am

now too my problem… i want too create a REALLY basic RPG HUD to get a hang of some stuff that’s troubling me.

basicly what i want too have is 4 character portates on the side with hp,mp,lvl and names… all this information is received from another object called global(which latter will be feed this information from something else)

I’ve attempted in my “noobishness” too program it basically using what i know from other programs.

ok so under frame1 i have the mandatory [

stop();

then i have an object called global in which i tried too initialize all the variables for all the characters

var p0Hp,p0Mp,p0Lvl,p0Name,p1Hp,p1Mp,p1Lvl,p1Name,p2Hp,p2Mp,p2Lvl,p2Name,p3Hp,p3Mp,p3Lvl,p3Name;
p0Hp=100
p0Mp=100
p0Lvl=5
p0Name="steve"


…etc for the rest of the character

now this is where the first errors occur… it says something about “Statement must appear within on/onClipEvent handler” the problem is that none of the functions for “on” I.e. press,rollover or keypress apply too the start of the game… so what am i missing?

If you want too check out my set up(theres other code in there that’s probably all wrong too but i’ll tend too one issue at a time) heres my file
Rpg Hud

Thanks for the help look forward too a time when im smart enough too pay it forward

//system info(doubt it means anything)
flash cs4, actionscript 2, OS= Windows xp