4 import flash.display.MovieClip
6 public class Main extends flash.display.MovieClip {
8 if(!this instanceof ExtendMain) {
9 /* If we don't check what class we're in, we get a infinite
10 recursion, and flash player outputs this message:
11 Error: Error #2136: The SWF file extendclass.swf
12 contains invalid data.
14 var p = new ExtendMain();
19 public class ExtendMain extends Main {