My co-worker Ian is a big Python developer. He loves all types of one liner code shortcuts. I have to say it is great working with him. I get to steal all types of neat tricks. Here is a shortcut when creating an event listener. You know it's the little things in life.
my_btn.addEventListener( MouseEvent.CLICK, function( event:MouseEvent ):void
{
trace( event.type );
} );
Wednesday, October 8, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment