----- Original Message ----- From: "John" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, January 10, 2008 8:40 AM Subject: [flexcomponents] Posting variables from one component to another
> Hi there, > > I am a newby to Flex and have some questions to ask. > > I have my main application built from 3 components. The first one is > like a title bar called titleBar, the middle one is the main display > area. Thats built up from a Viewstack and the last one is called navBar. > > What I would like to do is send a variable from the items from each of > the viewstack called title to the titleBar, and navigation to the > navBar. > > Can someone please help? It is possible to pass values between components using the binding mechanism and this is often used in small examples to demostrate how Flex works at a basic level. In practice most developers will use the event mechanism to pass values out from components, or will use the binding mechanism to bind to a static class holding variables that are accessible to all components. It's best that components don't depend on other components - the application will turn to spaghetti. If you post some simple code to show what you have in mind I'm sure you'll get some concrete suggestions. Check out as many Flex tutorials on the web as you can. Welcome aboard. Paul > > TIA > > John > > > > > Yahoo! Groups Links > > > >
