In CanvasLayout.as the line (820) that reads: -
for (i = 0; i < n; i++) { var child:IUIComponent = target.getChildAt(i) as IUIComponent; var childConstraints:LayoutConstraints = getLayoutConstraints(child); if (!child.includeInLayout) - The child is null. The stack trace does not go back far enough to one of my methods or classes. It happens when I remove multiple children off the screen (it was not happening before). Then everything is messed up. This app I am writing is large (about 150k lines, >200 class files) and has been running very smoothly. But this error seems ambiguous and hard to follow especially since the stack trace does not go back far enough. Has anyone ever come across this or have any suggestions? Even if I could lengthen the stack trace to recurse farther.