AS3: Singleton Event Controller


/ Published in: ActionScript 3
Save to your folder(s)

Simple, elegant solution that demands re-broadcast. Author's explanation of the class: So I had the stage listen for the keyboward event, and when it heard it, dispatch it through this singlton instance, whcih the scroller can invoke as a listener, and viola, it worked perfectly! All events that need to travel all over the project, to parents, grandparents, and to all points in the display list, will now do so through this great EventCentral singleton.

URL: http://blog.flexcommunity.net/?p=189

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.