[AS3] Setting up public variables and functions
EDIT: I forgot to mention this is in Actionscript 3
I'm creating a simple game, and it's my first time writing code in classes instead of the main timeline.
My question: if I add a public variable to a movieclip class (Player), am I able to reference that variable from the main document class? Or should I be putting all of my public variables and public functions on the document class?
Right now, when I add public variables or functions to one of my movieclip classes, the document class doesn't seem to be able to find it.
Let me know if I need to clarify the issue more.
Any help would be very appreciated.
Last edited by TJRobertson86; 04-21-2012 at 11:35 PM.