I have the connections in place that correctly;
- loads xml data to the proxy;
connects mediator to proxy
connects viewComponent to mediator
Now I'm trying to get the mediator to pass the proxy's data to the viewComponent:
this.mainMenu.loadXML(this.menuProxy.getMenuData() as XMLList);The above statement executes from the mediator after the viewComponent fire's it's CreationComplete event. Using breakpoints, everything is happening in correct order - the data in the proxy exists correctly when the getMenuData() method is called:
public function getMenuData( ):*
{
return data;
}
But the parameter passed to the viewComponent's method is coming up NULL.
public function loadXML( value:XMLList ):void
{
nav.dataProvider="{_navXML}";
}
So the question boils down to, is this not a legit way to pass data down to a view component?
this.mainMenu.loadXML(this.menuProxy.getMenuData() as XMLList);
Thinking it might be a conversion of type issue, I've also tried:
(proxy)
public function getMenuData( ):*
{
return data as XMLList;
}
(mediator)
this.mainMenu.loadXML(this.menuProxy.getMenuData());
Data looks ok all the way to the final step where it's passed into the viewComponent.
thx
--steve...