The question itself may not convey exactly what I mean, so I will quickly jump into the code.
var myClass:Class;
And I have my Class A defined with myClass storing Class A.
myClass = getDefinitionByName("myPackage.A") as Class;
Problem is how can I verify if myClass is storing the Class A. The following snippet doesn’t work.
if(myClass == A){
Alert.show("equal");
}
Why does this comparison fail?
Try this:
Comparing by package name: