--- In [email protected], "weezee49" <rainygl...@...> wrote: > > But I still have a problem calling a public method in Login from > MainBox. Because MainBox is in a different branch of the tree, it > can't see Login without some convoluted getChildAt().getChildAt(), > and so on. > > Just to clarify, my diagram didn't come through. Application has a > ViewStack, which has SplashBox and MainBox. SplashBox has a VBox > which has an Accordion, which has LoginBox and CreateAccountBox. > > This code worked in the Application: > > var vbox:UIComponent = splashBox.getChildAt(0) as UIComponent; > var accord:UIComponent = vbox.getChildAt(3) as UIComponent; > var loginBox = accord.getChildAt(0); > loginBox.clearFields(e); > > But again, it seems inelegant, and not very robust if I have to > change the structure later.
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf Q3

