Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Getting Started / getting 1009 error from mediator on: April 15, 2011, 12:45:02
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
Pages: [1]