I'm developing an engine to generate components.
I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below:
private function sidebar():void {
xmlReq = new URLRequest("sidebar.xml");
callReq(content);
}
private function callReq(cholder:Canvas):void {
getHolder = cholder;
getHolder.addChild(...)
}
<mx:Canvas x="0" y="123" width="100%" height="200" id="content">
</mx:Canvas>