Shonumi Posted September 22, 2007 Report Share Posted September 22, 2007 Is there any decent way in ActionScript 2.0 to track all the current instances of a particular class? I've seen where you can do this, var my_obj = new obj(); /*Pretend obj is a class with only a Number variable x */trace(my_obj[0]); /* The value of x is outputted here */ That provides an efficient way to go through all the variables of a class, but I'm looking for a way to get to all of the instances of a particular class. I'd thought there would be something like, referring back to my crude example, obj[0] would return the foremost and earliest created instance of the obj class. I don't think it works quite like that. Does anyone know of a way to do this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now