Try parentDocument.headerStack.selectedChild = secondCanvas;
- Gordon -----Original Message----- From: kredding.geo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:13 PM To: [email protected] Subject: [flexcoders] ViewStack change using separate mxml file I created a simple mxml applicationthat contains a viewStack. The stack defaults to the first canvas. This canvas contains a button that when pushed, changes the stack to the second canvas. I can get this to work, but what I really want is to put the first canvas into a second mxml file. The problem that happens is now when the button is pushed it, the action script doesn't understand the id of the viewStack. The action script is running on the second mxml file while the viewStack is in the first mxml file. The code is: function loginButtonPressed() { headerStack.selectedChild = secondCanvas; } Flex cannot find headerStack. Is there any way to pass this value back and forth between the two mxml files? Thank you so much, Kim Yahoo! Groups Links

