I don't have time to look at your code, but keep in mind that each mxml
file has its own variables so you may need to reference a variable from
parentDocument.parentDocument, or even Application.application.

 

-Alex

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of xmrcivicboix
Sent: Tuesday, February 06, 2007 9:42 PM
To: [email protected]
Subject: [flexcomponents] Component Interactions

 

Hi guys, I'm fairly new to Flex 2 and I'm in the process of developing
an application that utilizes the DataGrid and Graphs. Anyhow, this is
how my application flows. 

I have my main application "CSVParser.mxml", a "Parser.as", and 2
components: "charts.mxml", and "users.mxml" so far. When the program
starts, "Parser.as" process a csv file that I have locally and turns
it into an Array object then the component uses that Array object as
the dataProvider. The data then displays in the DataGrid. At the same
time, I want to be able to reference that same Array object in another
part of my application, my charts.mxml component. However, the problem
seems to be that when I reference the Array object, it's null because
data has not yet been yet. So my question is, how can I reference that
Array object?

Please take a look at my codes.

main application: https://crux.baker.edu/~thuynh01/flex/CSVParser.mxml
<https://crux.baker.edu/~thuynh01/flex/CSVParser.mxml> 

components:
https://crux.baker.edu/~thuynh01/flex/charts.mxml
<https://crux.baker.edu/~thuynh01/flex/charts.mxml> 
https://crux.baker.edu/~thuynh01/flex/users.mxml
<https://crux.baker.edu/~thuynh01/flex/users.mxml> 
https://crux.baker.edu/~thuynh01/flex/promotions.mxml
<https://crux.baker.edu/~thuynh01/flex/promotions.mxml> 

parser:
https://crux.baker.edu/~thuynh01/flex/Parser.as
<https://crux.baker.edu/~thuynh01/flex/Parser.as> 

 

Reply via email to