For debugging purposes I'd like to trace the internal ID of some objects. You know, the stuff you get in error reports sometimes, SuperObject@a8D7a2
Is this possible?
For debugging purposes I'd like to trace the internal ID of some objects. You know, the stuff you get in error reports sometimes, SuperObject@a8D7a2
Is this possible?
Not as such.
Would creating a unique ID on demand do the trick?
A solution that was sufficient for my needs is simpler still, Create an instance variable holding a random number. This is likely (but not guaranteed) to be different for each object, depending how many you have.
private var _id:int = Math.random() * 10000000;
myObject.name = "Id_"+x;
... or something else dynamic string;
If You don't want add an Id, just see during the debug process, just trace it.
trace(myObject.name );
Air decompiler add an unique name to every display object. (like this: Instance105 )