Object.inheritProps = function (obj, superClass, oArgs) {
obj.temp = superClass;
obj.temp(oArgs);
delete obj.temp;
}Object.inheritPrototype = function (sub, superClass) {
if (typeof sub == "function") {
var o = sub.prototype;
} else if (typeof sub == "object") {
var o = sub;
} else {
return false;
}
while (o.__proto__.__proto__ != null) {
o = o.__proto__;
}
o.__proto__ = superClass.prototype;
}Object.prototype.inherit = function (superClass, oArgs) {
if (typeof this == "object") {
Object.inheritPrototype(this, superClass);
} else if (typeof this == "movieclip") {
if (!new superClass().duplicateMovieClip) {
Object.inheritPrototype(superClass, MovieClip);
}
this.__proto__ = superClass.prototype;
}
Object.inheritProps(this, superClass, oArgs);
}ASSetPropFlags(Object.prototype, ["inherit"], 1);