Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if two objects are of the same type in Actionscript?

Tags:

I want to do this in Actionscript:

typeof(control1) != typeof(control2) 

to test if two objects are of the same type. This would work just fine in C#, but in Actionscript it doesnt. In fact it returns 'object' for both typeof() expressions because thats the way Actionscript works.

I couldn't seem to find an alternative by looking in the debugger, or on pages that describe typeof() in Actionscript.

Is there a way to get the actual runtime type?