Class Instance Name property

is there any way, within a class definition, to access the instance name of the class?

as in, say you have a class “playerObject”, and you instantiate an instance of it like usual

player:playerObject = new playerObject();

is there an inbuilt property or variable i can access within the playerObject class code to return “player”?

if, in the constructor, i trace(this) it returns [object Object], i tried things like this.name, this._name etc, of course they didnt work…

any help would b appreciated :beam: