I’m building a class that displays a standard notification on the stage, let’s call it NoticeHandler. Any class can send a string to this class through stage.dispatchEvent. ErrorHandler listens for this event on the stage, and displays the notification box.
This works fine, but now I’ve got a class that isn’t present on the stage. How can I dispatch an event from this class to NoticeHandler? (1120: Access of undefined property stage.)
Or is there a much easier way to make this notification system possible?