On Sat, Feb 7, 2009 at 7:26 PM, johndoematrix <johndoemat...@yahoo.com> wrote:
> hi this is a funny question but am gonna ask it anyway. when i want to
> access anything from a child doc that is in a parent doc in flex i use
> parentDocument, what do i use when i want to say access and array in a
> child doc from a parent doc of that child. in essence i would like to
> know the opposite of parentDocument. thanks

You can access the child directly using its ID (MXML) or whatever
reference you have to the child.

 <ParentDoc>
   <ChildDoc id="childDoc" />
 </ParentDoc>

Then you can say

 childDoc.someArray

to access the internal array.

You can also get a reference to the child using the getChildAt method.

  this.getChildAt(0).someArray

Manish

Reply via email to