Scout shows the Function objects are created by the AS3 global functions (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html). Why is it so ? I do not see any reason why an XML or String object create a Function object.
Also, I removed all the typecasts of XML() and instead replaced it with "as XML" to avoid calling the global function, but there is no impact on the Function objects being created by XML.<class initializer>, code in global scope. It still creates 1700-odd Function objects.
Any idea what might be wrong with my understanding or any way to figure out whats creating these Function objects ?
I am in the same trouble, some of the Function will be gc-ed, but some will not.