I've got a mediator that accesses a view component child of the main program. When I try to set a property of a child view component of the child in that mediator, it get a #1009 error (cannot access null value
case AuthProxy.AUTH_SUCCESS:
authVO = note.getBody() as AuthVO;
contactsControlBar.authLbl.text = authVO.getUserRole;
contactsControlBar.uNameLbl.text = authVO.getUserName;
break;
I've searched all over, and I'm pretty sure it has to do with the child component not being instantiated, but I can't really figure out how to implement the fix correctly. One post I read said to use :
override protected function commitProperties():void
20 {
21 super.commitProperties();
22 }
but I'm still not able to really figure it out. I need to know exactly what's happening, and how the fix works. TIA
Mike