All id's are flattened. So mainScreens.interfacePanel does not exist. Should just be interfacePanel.secondViewstack.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryanharlin Sent: Wednesday, November 28, 2007 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing nested objects... what am I missing?!?! I have a simple enough question, I think. But I've been struggling with it for two days. I have an mxml application which has a viewstack in it. The children in the viewstack are <fr: tags for other mxml files It looks like this: <mx:ViewStack id="mainScreens"> <fr:interfacePanel id="interfacePanel" /> <fr:otherPanel id="otherPanel" /> </mx:ViewStack> In the mxml file called interfacePanel I have another viewstack with interface screens on them. How can I select different children of that viewstack from the main mxml app. I would think I'd do something like this: <mx:button click="mainScreens.interfacePanel.secondViewstack.selectedChild = Page2;" /> But that doesn't work. Does anyone know the method of addressing object across multiple nested mxml files? Thanks! Hopefully someone can show me what I'm missing.