0 Replies Latest reply on May 25, 2007 11:17 AM by -Wilco-79-

    Listener problem when "unloading" externaly loaded SFW's

      While loading an external SWF in to an Flex application is easy, removing it again seems to bring a few problems.
      What i want to acomplish is the following: Make a portfolio website in Flex, in which i can show images, movies and SWF's.
      So I want to be able to load a SWF i made (which is not part of the application) made with flex or flash.

      The problem that i'm having is that if the loaded SWF adds listeners to the stage or to it self, the listeners keep calling functions even after the SWF was removed using unload or by loading different content.

      I've tried this with both AS3 and the flex framework and with SWF's created in both flex (using the flex framework) en flash.

      Setting the listeners with weak reference seem to work for AS3 (Loader).
      But this is missing the point, since i want to be able to load just any SWF file (Flash 9, AS3 offcourse).

      Any help would be welkom