AS1 Class with AS2 Intrinsic counter-part

I’m hoping someone can help me out, here.

I’ve written an AS1 class, so that it can be uses prior to the class export frame (it’s used in the preloading process). I thought, hey, why don’t I try using an AS2 intrinsic class to get compile-time checking? I got that working halfway…

The instance properties are checked. But the static ones are not. This appears to have to do with the fact that when I say Foo.nonexistent_prop, it’s looking at Foo, my AS1 class, and not _global.Foo, the imported AS2 intrinsic class (it’s not really there, but that’s where it would be if it were a regular AS2 class).

I’ve trying creating Foo as my AS1 class then setting _global.Foo = Foo, I’ve tried Object.registerClass(“Foo”, Foo), and endless variations on different ideas.

My current workaround is to use

Foo.__resolve = function(name:String) {
    trace("Oops, " + name + " does not exist.");
}

Which gives me runtime checking, but I’ve got a lot of static “constants” defined in this class and it would be great to have full-on AS2-style compiler checking.

Any ideas? Thanks…