Something about the flex debugger hasn't gelled yet. If I add components to a container using actionscript addChild() and then look up the variables in the debugger I don't see them. The only children I get to see are those created by <mx:> tags.
Try the code below, set a break point on show() and run the debugger. The code creates a swfloader and a button and inserts into a canvas. Now in debugger variables if I peek in 'this.mainBucket' I don't see them. I also used show() to get a local variable to reference mainBucket and it doesn't show the children either. What am I missing? Thanks! Steve <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="buildASLoader();addButton();show()"> <mx:Script> <![CDATA[ import mx.controls.SWFLoader; import mx.controls.Button; public function buildASLoader():void { var app1loader:SWFLoader = new SWFLoader(); var url:String = "samples/Application1.swf"; app1loader.id = "app1loader"; app1loader.load(url); mainBucket.addChild(app1loader); } public function addButton():void { var myButton:mx.controls.Button = new mx.controls.Button(); myButton.label = "New Button"; mainBucket.addChild(myButton); } public function show():void { var CanvasCopy:Canvas = this.mainBucket; var a:Number=1; // set breakpoint } ]]> </mx:Script> <mx:Canvas id="mainBucket" width="100%" height="100%" paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5" > <mx:SWFLoader x="1" y="1" source="samples/Application2.swf" id="app2loader"/> </mx:Canvas> </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

