I have a pretty standard implementation of a circular, two-way linked list. For arrays I’d generally use for each in to go through each element without need to worry.
The problem is with my custom Linked List which cannot be looked through with simple call. I’d guess, if there is a Proxy class in AS3 there are high chances the Adobe team came up with an idea to implement, I don’t know… Enumerable class or something? Nevertheless my search turned out nil.
Is there a way to make For Each In work with a custom class in Flash? Not to go through all of the object’s properties but go through the whole data set represented by this class.
You can read this post about Proxy class in my blog. You can find examples of implementing “for each” logic.