0 Replies Latest reply on Sep 20, 2012 1:54 PM by Jerry62712

    Cairngorm Event Question

    Jerry62712 Level 1

      I have an item renderer that is a link.  When it is clicked, I want a grid to be populated with data.  It's not happening.

       

      Renderer segment:

      
      
      
      
      
      
      
      public static const CLICK:String = 'UserAARetrieveEvent';
      
       ...
      
      lb2.addEventListener(MouseEvent.CLICK, retrieveList);
      
      
      
      
      
      
      addChild(lb2);
      
      
      
      
      }
      
      
      
      
      
      
      public function retrieveList(event:Event):void
      
      
      
      
      {
      
      
      
      
      
      
      dispatchEvent(new Event(UserAA_NmLk_Renderer.CLICK, true, false));
      
      
      
      
      }
      
      
      

       

      Events.as:

      public static const USER_AA_RETRIEVE_EVENT:String = "UserAARetrieveEvent";

       

      Controller.as:

      addCommand( Events.USER_AA_RETRIEVE_EVENT, UserAARetrieveCommand );

       

      UserAARetrieveCommand.as will do the execute/result/fault methods if I could get it to execute.