Skip to content

Instantly share code, notes, and snippets.

@robertpenner
Created February 15, 2012 02:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertpenner/1832739 to your computer and use it in GitHub Desktop.
Save robertpenner/1832739 to your computer and use it in GitHub Desktop.
describeType() decompiled from playerglobal.swc (11.1)
//Created by Action Script Viewer - http://www.buraks.com/asv
package avmplus{
public function describeType(value, flags:uint):XML{
var e:XML;
var o:Object = describeTypeJSON(value, flags);
var x:XML = typeXml.copy();
x.@name = o.name;
if (o.traits.bases.length){
x.@base = o.traits.bases[0];
};
x.@isDynamic = o.isDynamic;
x.@isFinal = o.isFinal;
x.@isStatic = o.isStatic;
describeTraits(x, o.traits);
var oi:Object = describeTypeJSON(value, (flags | USE_ITRAITS));
if (oi !== null){
e = factoryXml.copy();
e.@type = oi.name;
describeTraits(e, oi.traits);
x.appendChild(e);
};
return (x);
}
}//package avmplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment