This occurs when executing initBackGroundImage call within RectangularBorder.as.
// To optimize memory use, we've declared RectangularBorder to be a Shape.
// As a result, it cannot have any children.
// Make the backgroundImage a sibling of this RectangularBorder,
// which is positioned just on top of the RectangularBorder.
var childrenList:IChildList = parent is IRawChildrenContainer ?
const backgroundMask:Shape = new FlexShape();
backgroundMask.name = "backgroundMask";
backgroundMask.x = 0;
backgroundMask.y = 0;
childrenList.addChild(backgroundMask);In the case when loading a sandbox application childrenList is the Applicaiton container whoms addChild method expects an element of type IUIComponent.In file Container.as.// Throw an RTE if child is not an IUIComponent.var uiChild:IUIComponent = IUIComponent(child);Am i missing a step in 4.1 when loading a sandbox application? Application is being loaded as child of boostrap.
Error occurs when i create the sandbox application domain as a child of the boostrap.
i.e. loaderContext.applicationDomain = new ApplicationDomain(bootStrapAppDomain).
If i dont use the boostrap application domain i do not get the error but it is not loaded as a child of the bootstrap and i get a different set of errors.
Any help greatly appreciated as to why loading as a child of bootstrap no longer works in 4.1.
In Flex 4, you need to