I'm building an application in Flash CS5 which loads an external SWF and displays it on the stage. Once the external SWF is loaded and displayed on the stage, the user clicks through a series of buttons in the loaded SWF. The final button click removes the SWF from the stage and another object (this time from the library) is then displayed and the program moves on.
I've tried adding an event listener to the loader so that it can respond to the event REMOVED_FROM_STAGE. However when the external SWF is removed from the stage, nothing happens.
I've tried two aproaches but neither produce a result.
Can anyone help?