So i have an array of nodes.
Each node has a method called apply()
which is overridden in subclasses.
So when I try to call myArray[i].apply()
I get the Node.apply() method not the Subclass.apply() method.
In AS3 the default was to call the child class method but in HaXe I have to type cast these to get the correct one.
That’s all well and good but how do I find the type of the lowest class type from an array already cast as nodes?
Something like this:
cast( i, Type.getClass(i) ).apply();