2 Replies Latest reply on Jun 8, 2011 3:52 AM by Nishant Jha28

    Need help in add event listeners.

    Raghuvasa Level 1

      Hi All,

       

      I need help in event listeners.

       

      I am trying to add listeners in actionscript dynamically like below shown

       

      var editLink:LinkLabel         = new LinkLabel();


      editLink.addEventListener(MouseEvent.CLICK, editSettings,false,0,true);

       

       

      If i click on the editLink first time it is unable to call the editSettings function. 

       

      It is working fine if any event occur before this function call.

       

       

      Can any one help regarding this. why it is not adding listener first time.

       

       

      Thanks in advance

      Raghu.