It looks like there is a bit of a discrepancy between the two controllers. I think both should implement IBeadController and IDocument. The IBeadController because they are controllers and IDocument so that you can get a handle to the application and grab things from that, like the model, which is what I'm going to be doing.
The applicationComplete event should be the final event sent once all of the components have been created, their beads created and adding to their component strands, and all of the components are on the display list. There may still be a few iterations of sizing and placement to go, but most of the time that's all done too. The viewChanged event is dispatched by a component when its IBeadView bead has been added to the strand. This event will precede applicationComplete. ‹peter On 8/17/16, 2:44 PM, "PKumar" <[email protected]> wrote: >Thanks for response, but I was looking the controller implementation and i >got following implementation > >*public class AlertsViewController extends EventDispatcher implements >IBeadController >{ > >}* > >and >*public class TodoListController implements IDocument >{ > >}* > >So why these two implementation and what is the purpose behind it? Please >explain. > >Also, what is the difference between "applicationComplete" event & >"viewChanged" event? > > > > > >----- >Regards, >Prashant >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Circular-Dependency- >tp13287p13333.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
