Accessing Variables

Hey everyone :slight_smile:

Okay so I’m making a simple turn-based battle system like in FF1/2 using AS3

I was wondering if I made another .as file with all the variables for the stats, like HP MP attack defense etc, could I then access those variables in the main document class? If so, how would I access, for example, the variable HP in the main doc class?

I tried google and looking here on the forums but I must be searching the wrong key terms or something. /noob :puzzled:

Hopefully this makes sense. I’m still have a lot to learn about AS3 T_T.

Thanks to anyone that helps.

Edit: this is what i have so far if anyone is interested :stuck_out_tongue:

http://dl.dropbox.com/u/370336/RPG%20Battle2.swf