error 1119 when class extends another class that extends movieclip
hiya
i came across this problem and i have no clue why it's happening. basically, consider 2 nested movieclips on the stage, something like stage -> main -> filler. both movieclips have instance names (main and filler).
in the library, i set main to export for actionscript, using class A:
package {
import flash.display.MovieClip;
public class A extends MovieClip {
public function A ():void {
trace ('construct A');
trace (this.filler); // should trace [movieclip] etc
}
}
}
it works fine. now i change it's export settings to use class B, that extends A, and it breaks:
package {
import flash.display.MovieClip;
public class B extends A {
public function B ():void {
trace ('construct B');
}
}
}
this throws an error 1119: Access of possibly undefined property filler through a reference with static type A.
can anyone give me a hint on that, as it works with class A, but not B extending A? i understand it was meant to work?
many thanks
