Hi all,
 In developing my first largish AS3 app, I've discovered something
that I think is missing.

I'd assumed that Delegate, which peppered all my AS2 projects, would
have been made redundant and, indeed, it kind of has - in that AS3
takes care of the context of a function, so you can happily say (for
example):

button.onRelease=myFunction;  // AS3

instead of

button.onRelease=Delegate.create(this,myFunction);  // AS2

Hurrah!

But unfortunately, I've always used Delegate for a bit more than that
- an expanded version (like the Proxy class that's been kicking
around) that lets you tack on additional variables to make callbacks
that bit more useful.

That being the case, I've come up with a new version for AS3 which
suits my purposes and may be handy for other people.

All the info is here:
http://wildwinter.blogspot.com/2007/04/come-back-delegate-all-is-forgiven.html

Hope it's helpful,
  Ian
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to