0 Replies Latest reply on Feb 4, 2008 9:00 AM by Whitetimer

    ItemClick on MenuBar Component

    Whitetimer Level 1
      Hi All ....

      Trying to get to grips with Cairngorm and i want to try and use the ModelLocator for navigating a viewstack. I have a custom MenuBar for the application navigation.

      This is what i did have ----

      quote:


      private function initApp() : void {
      appMenuBar.addEventListener(MenuEvent.ITEM_CLICK, menuClickHandler);
      }

      private function menuClickHandler(event:MenuEvent) : void {

      var viewStackString:String = event.item.@view;
      appVS.selectedChild = this[viewStackString];

      }



      Can anyone suggest an MVC approach using a ModelLocator .... ?

      Many Thanks ! Cheesy Wink