PDA

View Full Version : How To Check Instance Name


aaron_da_killa
06-29-2009, 08:03 AM
Hey

Is there a way to return the instance name of objects, something like this:


if (this.instanceName == "myObject"){
doSomethingCool();
}

aaron_da_killa
06-29-2009, 08:16 AM
think I got it.... this works:


trace(this.name);