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
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
But this is missing the point, since i want to be able to
any SWF file (Flash 9, AS3 offcourse).