Created
February 15, 2012 02:49
-
-
Save robertpenner/1832739 to your computer and use it in GitHub Desktop.
describeType() decompiled from playerglobal.swc (11.1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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