Ok Frank,
This is what I have so far;
- How do you want to handle the parent directory such as "runtime" and
"classes"? Are those going to be hardcoded or dynamic? I know they
need to be in the paths, just asking before I implement it.
- Does the two super lines need to be there if the class extends Object?
I'm at the members defs now, do you see any glaring mistakes?
--------------------------------
AS3
package {
public class A {
}
}
--------------------------------
JS
define(["exports", "AS3"], function($exports, AS3) {
"use strict"; AS3.class_($exports,
function() {
var Super=Object._;
var super$=Super.prototype;
return {
class_: "A",
extends_: Super,
members: {
constructor: A,
};
};
});
});
Mike
--
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com