In the current release build 2009.09.04, the movie clip containing class B must appear before the one containing class A (in the outline), when changing the movie clip order you'll see that it will trace "false" since class B no longer extends class A.
In the current pre-release build 2009.11.30 the order doesn't make any difference, it works no matter which clip appears first in the outline... until you start using the import statement! When using import the order again makes a difference, but this time the base class must appear first as opposed to the 2009.09.04 build where it's the other way around. Change class B as follows to see the difference:
import foo.bar.what.ever.A;
class foo.bar.what.ever.B extends A
{
public function B()
{
super();
trace(this instanceof A);
}
}
So now i'm a bit confused. Which is the correct behaviour? And might it change again in the future?
Best
Oliver













