some children are not display objects. Might be an fx:Declaration
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/20937c7a Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/20937c7a Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/20937c7a Branch: refs/heads/develop Commit: 20937c7a514ef472be9d2757c51ed271a5a58a62 Parents: d3d8fa6 Author: Alex Harui <aha...@apache.org> Authored: Mon Oct 6 13:14:37 2014 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Mon Oct 6 13:14:37 2014 -0700 ---------------------------------------------------------------------- .../FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/20937c7a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as index 96c2e1b..8e37134 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/utils/MXMLDataInterpreter.as @@ -19,6 +19,8 @@ package org.apache.flex.utils { +import flash.display.DisplayObject; + import org.apache.flex.core.IBead; import org.apache.flex.core.IContainer; import org.apache.flex.core.IDocument; @@ -266,7 +268,7 @@ public class MXMLDataInterpreter { comp.setMXMLDescriptor(document, children); } - if (parent) + if (parent && comp is DisplayObject) { parent.addElement(comp); dispatchBeadsAdded = true;