Jump to content

Tracking Class Instances


Shonumi

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...