Possible to add an EventListener to a function for Actionscript 3?
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-05-14T12:50:46Z
Indexed on
2010/05/14
12:54 UTC
Read the original article
Hit count: 194
I'm trying to setup something like Aspect Oriented Programming in Actionscript 3, basically the only thing I need to be able to do is something like this:
SomeClass.getMethod("methodName").addEventListener(afterMethodExecuted, function() {
//run code
});
This way I can run code after (or before) any method in any class has run, allowing numerous new possibilities.
How should I implement this?
© Stack Overflow or respective owner