I have a main parent application with 2 children (the children are siblings). I am trying to pass data from sibling1 to parent and then to sibling2 but can't quite figure out how to do it. Here's code from the parent:
<fx:Script>
<![CDATA[
[Bindable] private var _myData;
public function set myData(value:Object):void{
_myData=sibling1.autoComplete.selectedItem;
}
]]>
</fx:Script>
<local:sibling1 myData="{myData}"/>
<local:sibling2 />
In sibling1 I have a search box named autoComplete. In sibling2 I need to echo the item I selected from sibling1.
I'm trying to pass the data from sibling1 to the parent and then to sibling2 (and then to siblings 4,5,6,etc., so I imagine this makes the most sense?)