1 Reply Latest reply on Oct 2, 2008 6:02 AM by Newsgroup_User

    Weak referenes

    stigbn Level 1
      Hi All
      Does Flex use weak references for eventlisteners when they are added in MXML ?

      Best regards S.Schmidt
        • 1. Re: Weak referenes
          Level 7

          "stigbn" <webforumsuser@macromedia.com> wrote in message
          news:gc1sm5$309$1@forums.macromedia.com...
          > Hi All
          > Does Flex use weak references for eventlisteners when they are added in
          > MXML ?

          It is impossible to remove an eventListener added in MXML. The main time
          this would cause a problem is if you add a component to something in MXML
          and, for instance, set its click listener in MXML and then remove it in AS,
          that component could not be garbagecollected unless the parent component
          were also removed.