I’m long time player on this site, but have never really used the forums before. I am currently having some difficulty with Action Script 3 and was hoping someone might be able to point me in the right direction. (As the title suggests, I’m pretty new to code)
In my main method I run one line of code [ addChild(tBar) ] which essentially just adds a toolbar object to the stage. From the tool bar class, I navigate my game’s menus and run most of the back ground code. However, when I initiate combat for players I would like to temporarily remove the toolbar from the screen [ removeChild(tBar) ]. How can I accomplish this inside of a separate class, when the object tBar is defined/created/addToStage in the Main method?
Thanks for any help you can provide