Log
View Options
Dynamic Timer Event Handling
7/28/09
So, I had a bunch of things that needed to happen in order one after the other, yet there was only one event that fired off all the functions. Well of course I needed to come up with some clever enter frame or timer event. For reasons that are rather trivial, yet valid I have chosen to use a timer event. So then what do I do with the list of functions I want to call? Well lists are just arrays. Ok, what about the parameters for the functions? Ok, let's make our main array multi-dimensional, and the sub-arrays can be a function with parameter values simple right! Have a look for yourself; I'll probably expand this later into a static class you can just throw operations at.
Snipt.net is dead. Replace link to "http://snipt.net/embed/29bb14bd70b9a69182e6878a4d4de638"
UPDATE: I did expand this and make it into a nice little class package. View the post or just download the class package!