Why doesn't flash handle N-Level Polymorphism?

Gohaleg

New member
Imagine these classes

public class A {}

public class B extends A {}

public class C extends B {}

Ok, now, in the "main" code i have these:

public xx:A;

xx = new A();
xx = new B();
xx = new C();

----

Ok if i do
xx = new A();
xx = new B();
every thing is ok...

but if i do
xx = new C();

i get : "The ABC data is corrupt, attempt to read out of bounds."

This is a bit stupid. If C extends B that extends A why can't i declare an A that is a new C?

Can i only make hierarchies with 1 level?
 
Back
Top