Hello,
I have a problem with a lost reference in a project where one SWF is loaded into another.
Here's a description of what the program looks like and how it functions. I have a Container flash-project+SWF-file that functions as a window around another flash-project+swf. In the outer-window I create pop-up movieclips triggered by an onRollOver-event. When a certain button in the outer-window is clicked those popups should all be destroyed and a zoom-in should be done on the inner-MovieClip so that the user can continue there.
The first time the button is clicked everything works fine. Popup is deleted, zoom-in is done correctly. However, after working with the inner-movieclip, and then zooming out again, things start to go wrong.
When one moves the mouse over the button with the pop-up and then clicks, the pop-up isn't removed anymore. This seems to be because the reference to the pop-up-movieclip is 'null'. So the pop-up stays visible and interferes with the inner-movieclip affairs.
Does anyone have any idea to what could be the cause? Could the switching of focus from the one flash-project to the other be due to the loss of the reference?
Could this be related to the 'depth' property? The popups in the outer-window seem to detroy each other because I may be trying to paint them all on the same depth. This isnt a problem since they shouldn't be visible at the same time anyway, but maybe it introduces trouble somewhere else..
Please help! Try to phrase your answers in such a way that make clear that I was insane to ever have tried to maintain/change a large-scale AS1/2 program in order to make sure I's never so dumb to try it again...
Regards, JW