clark Posted February 8, 2014 Share Posted February 8, 2014 I am an AS3 developer and quite new to this world. I understand in Flash that stuff dispatchEvent() and generally you would listen to that object dispatching that event, or to a parent if the event bubbles. So essentially these 2 building blocks when something extends EventDispatcher:Apple > dispatchEventTree > addEventListenerSo if Apple changes color, it dispatches a CHANGE event where the Tree would react.I see that there is Phaser Signal. Is this similar in concept to Robert Penner's Signals? I think I remember finding a good tutorial on them a while back. Link to comment Share on other sites More sharing options...
d13 Posted February 8, 2014 Share Posted February 8, 2014 Are you trying to dispatch custom events on objects?You could use Object.observe to watch property changes on objects: http://addyosmani.com/blog/the-future-of-data-binding-is-object-observe/ Link to comment Share on other sites More sharing options...
rich Posted February 8, 2014 Share Posted February 8, 2014 Yes Phaser.Signals is a direct port of Robert Penners AS3 Signals to JavaScript, so I'd strongly recommend using them Link to comment Share on other sites More sharing options...
clark Posted February 8, 2014 Author Share Posted February 8, 2014 Thanks lads, http://johnlindquist.blogspot.co.uk/2010/01/as3-signals-tutorial.html Vidsneezes 1 Link to comment Share on other sites More sharing options...
Vidsneezes Posted February 17, 2014 Share Posted February 17, 2014 Thanks for the link, I been trying to understand Signals for a bit now. clark 1 Link to comment Share on other sites More sharing options...
Recommended Posts