Hello, not sure if Flex questions are allowed here?
Why can't I refer to the tabs.table.spriteHolder.addChild(sprite); below? If I remove the TabNavigator and all Canvases, then spriteHolder.addChild(sprite); will work just fine: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete();"> <mx:Script> <![CDATA[ private function onCreationComplete():void { var sprite:Sprite = new Sprite(); var g:Graphics = sprite.graphics; g.lineStyle(1, 0xFF0000); g.beginFill(0xFF0000); g.drawCircle(200, 200, 20); g.endFill(); tabs.table.spriteHolder.addChild(sprite); } ]]> </mx:Script> <mx:TabNavigator id="tabs" width="100%" height="100%"> <mx:Canvas label="Tab1" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="Tab2" id="table" width="100%" height="100%"> </mx:Canvas> <mx:UIComponent id="spriteHolder" width="100%" height="100%"/> </mx:TabNavigator> </mx:Application> Regards Alex _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders