I'm having trouble figuring out how to access items (in this
case an accordion) across components.
In my application I have a main.mxml file which contains a
viewstack that uses homeview.mxml and buyersview.mxml to display
buyersview.mxml contains an accordion that I'd like to be
able to access from homeview.mxml. I tried using
This does not return an error but it doesn't work either.
You are or will be hitting the deferred instantiation issue.
Non-visible children of ViewStack or Accordion, are not created
until the user navigates to that view.
It is bad practice to attempt to set component properties
from the outside, and this is one reason. Instead, use the
creationComplete and/or show events to "pull" the data you want
into the component.
Your theory is good on the inter-component communication. You
may need to approach it one step at a time to verify your
expression. Application.application resolves to the top-level
application scope. I tend to use that more than parentDocument.