Iterating properties creates unwanted side-effects
Also known as:
- iterating properties in actionscript 2 causes getter setter to execute
I was working on our AS2 logger today. In particular I was creating a setup where you could simply drop in a couple components in your fla and ‘tada’, you would have a reflecting logger at your disposal.
I’ll go into the reflecting logger and component creation in another post, because what happened was that during a test run I ran into the dreaded 256 levels recursion problem.
Some research indicated that the problem lay with getters and setters.