I have Vbox having Hbox in turn hbox has some components ...TextInput...
I m adding this Vbox in another mxml file....iteratively ....
I need the sum of all the enetered values in the text boxes to be displayed on the textbox in another Mxml ...
I am taking sum in a variable and want to show tha some in another file...
How can I get that variable in my resultant mxml??
If you have another MXML component it compiles to be a Class. You can create a public function to sum the values in the component - lets call it valueTotals(). If in your application the mxml component has an id of "myComponent" then you can access the totals as myComponent.valueTotals().
This is one way to do it, but it may not be the best way. It is definitely better than accessing all of the individual values in myComponent.
In this case it is best to use custom events to pass data. Here are some resources:
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services