Link to home
Create AccountLog in
Avatar of roscoeh23
roscoeh23

asked on

getting the class and instance name

Hi,

I can get the instance name with

event.target.name

but can I get the class? It is the same with _mc at the end. If there is not a method to I suppose I cna just trim it.

Any help would be apprectiated.

R.
Avatar of blue-genie
blue-genie
Flag of South Africa image

are you wanting to know what class an object is? surely you'd know since you'd have to instantiate it.

ie. myBall:Ball = new Ball();
hence it's of the Ball class?
ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of roscoeh23
roscoeh23

ASKER

that is sweet!