Copying functions in ActionScript 3 (to duplicate a function then use it)
I'm curious to know if there is any examples you all could give me any examples of copying a function in AS3; then use that copy independent of the original function it copied.
I want to make an animation system that heavily depends on one type of function. Since it depends on one type of function, I cant have every single piece of code calling back to the same function if I want to use it multiple times.
Is there a way of properly doing this? are their performance consequences?
I'd really like to do this instead of writing several different functions out separately that work nearly the same. (plus I need to feed a set of values into those functions that are created, some being called by event listeners of course)
Anybody have any ideas or can point me in the right direction?