2 Replies Latest reply on Jul 29, 2007 11:05 AM by H_oo_T

    Event listener

    H_oo_T
      Hello
      does anybody know if there is a limition of the number of event listener that we can add ?

      i add a a part of the code, the lines who are in comments doesn't works.

      Best regards
      Milesi Nicolas
        • 1. Re: Event listener
          mxschiff Level 1
          There shouldn't be any limitation. What errors are you seeing?

          Without seeing the rest of the code it's difficult to diagnose the problem, but I wonder if you are trying to reference a component that hasn't been created yet...maybe because it only exists in a certain state? If so, you might want to specify the event listener in the MXML, or add it when you enter the relevant state.

          Mike Schiff
          Flex SDK team
          • 2. Re: Event listener
            H_oo_T Level 1
            Thanks, yes it is because the components are from different states, it works only with the base state, now i know what to do !


            Nicolas