"file" is not relevant. The run-time component DOM is what matters. One file(class) can produce multiple component instances. Normallly those components are independent. But you have almost certainly bound some elements of the user data component to some data model(variable) in the main app.
Perhaps through Application.application? This would make both instances update the same model. If you want the components to act independantly, then you will need to change the way you connect them to the data model, so that you can have independent data models. I don't have enough info to suggest a full solution, but a couple options are: 1. Pass the desired data model reference into the component 2. Use events to update the appropriate Application level data model based on event.target Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Tsoukias Sent: Friday, May 09, 2008 1:30 PM To: [email protected] Subject: [flexcoders] Re: Variables get overwritten issue... But it is the same file.mxml Thanks, Alex --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Use separate data models. > > Tracy > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Alexander Tsoukias > Sent: Friday, May 09, 2008 11:57 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Variables get overwritten issue... > > > > i have a set of components that comprise the "user data section" > that user data section is used in the main app. > but in one place, i use it as a popup > the problem is, that any changes i make from the popup to user B, the > variables are updated both on popup and main app users data section. > > So if I was editing/viewing user A in the main app, if i then edit > user B in the popup, when i close the popup and return to main app > user B is now selected instead of user A. > > Any ideas? > thanks >

