Class can't extend Document Class, or can it?

I have two classes. One is my Document Class, and another extends my Document Class.

It doesn’t work, and gives me this error

“Error #2136: The SWF file MyGame.swf contains invalid data.” :gas:

Any ideas? ty ty