Ashley
It's rather complicated, or maybe it just seems that way. I'm writing a plugin that uses instances to visualize screen objects(like the button div)
However it uses technology called parse so just creating the div isn't enough. Once all the divs have been created I need to run an action called parse on the divs. But I only want to do it once. So I want to keep a running total on the number of instances. That way during runtime I can have a variable that increases with every div. Once the variable reaches the number of instances I know that it is safe to run the parse function.