Posts Tagged ‘Action Script’

June 17, 2009 3

Prototype and as3

By in Action Script

On twitter someone asked something which included the prototype property. With as1 I used (like all) prototype to extend and create new classes. With as2 class definitions changed completely and since then I stopped using prototype. I never thought about it, until someone mentioned it on twitter. I became a bit curious about the prototype […]

Tags: , ,

April 21, 2009 0


By in Action Script

Short reminder: Event.REMOVE does bubble; Event.REMOVE_FROM_STAGE does not. So when implementing a listener don’t forget to check the target: function onRemove(anEvent: Event) { if ( == this) { // clean up } }function onRemove(anEvent: Event) { if ( == this) { // clean up } }