Hi,
So, I'm wondering how one would go about making a system for a global output that can be viewed with all classes without passing the same object over and over. To clarify, I'm trying to have 1 overall output box (say at the bottom of the screen), but I want other classes to be able to access it. The way It's being implemented, currently, is one class (let's call it the GUI script) is being used to create the window. The Main Class has a GUI object that creates the window and adds it to the stage, or whatever it's called in Flash Develop. The problem I'm having is that I'm writing a Player Class and I want to be able to output errors such as, when the player tries to equip something, but already has something in that slot.
What's the best way to do this without passing the gui object created in the main class to everything?
Or is that the only way to do this?