I discovered that describeType fails if you defined a methods in Object.prototype
An example:
1 2 3 4 5 6 |
Object.prototype.hello = function():void { trace("hello"); } var x:XML = describeType(Main); trace(x.factory.methods.(@name = "hello")); |
This code produces exception:
TypeError: Error #1010: A term is undefined and has no properties.Unfortunately I didn’t find any solution to fix it. Just try to not use Object.prototype .