Hi,
Well here is another update, I pretty much have subclasses working fine. There are still a couple issues that I will need to work out. Like the $static on static methods I asked Frank about, haven't got a reply.
There has been a couple things come up in the interum with me that I might have to attend to, I haven't committed this code yet because I want it pretty much "working" before I leave it.
I hope I can get time to work more on this but as I said, there are some things I have to deal with.
Frank, let me know if you see any mistakes, interfaces are being produced as well.
Does it matter if the public fields get initialized before the super call? Mike --------------------------------- AS package com.acme { import com.acme.sub.IOther; import com.acme.sub.ISub; public class B extends A implements IOther, ISub { public static function nowPlusOne() { return new Date(B.now.getTime() + 60*60*1000); } public function B(msg, count) { super(msg); this.count = count; trace("now: " + B.now); } public var count = 0; public var barfoo = A.bar(3); public override function foo(x) { return super.foo(x + 2) + "-sub"; } public static var now = new Date(); } } --------------------------------- JS define(["exports","runtime/AS3","classes/com/acme/A", "classes/com/acme/sub/IOther","classes/com/acme/sub/ISub", "classes/trace"], function($exports,AS3,A,IOther,ISub,trace) { "use strict"; AS3.compilationUnit($exports, function($primaryDeclaration){ function B(msg, count) { this.barfoo = (A._ || A._$get()).bar(3); Super.call(this, msg); count = count; trace("now: " + B.now); } var Super = (A._ || A._$get()); var super$ = Super.prototype; $primaryDeclaration(AS3.class_({ package_: "com.acme", class_: "B", extends_: Super, implements_: [ IOther, ISub ], members: { constructor: B, count: { value:0, writable:true }, foo: function foo(x) { return this.foo$2(x + 2) + "-sub"; } foo$2: super$.foo }, staticMembers: { nowPlusOne: function nowPlusOne() { return new Date(B.now.getTime() + 60 * 60 * 1000); } } })); B.now = new Date(); }); }); -- Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com http://blog.teotigraphix.com