# Problems with SWF with PopUp window, inside another SWF

**URL:** <https://forum.kirupa.com/t/problems-with-swf-with-popup-window-inside-another-swf/246095>\
**Category:** flash\
**Created:** [December 7, 2007, 12:17am UTC](https://forum.kirupa.com/t/problems-with-swf-with-popup-window-inside-another-swf/246095 "2007-12-07T00:17:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristina](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@Kristina](https://forum.kirupa.com/u/Kristina)\
**Post date:** [December 7, 2007, 12:17am UTC](https://forum.kirupa.com/t/problems-with-swf-with-popup-window-inside-another-swf/246095/1 "2007-12-07T00:17:44Z")

</div>

I’ve been struggling with this for 2 days.  
Inside one SWF file ([COLOR=blue]proizvodi.swf[/COLOR]), there’s a popUp window(for _[COLOR=mediumturquoise][COLOR=blue]scrpBoje.swf[/COLOR] [/COLOR]_) - which works perfectly.  
However when these two files are opened from the main SWF file (_[COLOR=blue]main.swf[/COLOR]_), popUp just won’t work :(.

Here’s AS for the popUp (inside \*[COLOR=blue]proizvodi.swf[/COLOR]) \*:  
[COLOR=mediumturquoise][/COLOR]

[COLOR=dimgray]hit\_mc.onRelease = function () {  
var myWindow:MovieClip = PopUpManager.createPopUp(\_root, Window, true, {closeButton:true, contentPath:“scrpBoje.swf”});  
myWindow.closeButton = true;  
myWindow.title = “I’m modal… try clicking the button again.”;  
myWindow.setSize(400, 400);  
myWindow.move(0, 0);  
myWindowListener = new Object();  
myWindowListener.click = function() {  
modalWindow = myWindow.content;  
myWindow.deletePopUp();  
};  
myWindow.addEventListener(“click”, myWindowListener);

myWindowListener.complete = function(){  
modalWindow = myWindow.content;  
modalWindow.doneButton.addEventListener(“click”, myWindowListener);  
}  
myWindow.addEventListener(“complete”, myWindowListener);[/COLOR]  
[COLOR=dimgray]}  
[/COLOR]  
[COLOR=dimgray][COLOR=black]Any ideas?[/COLOR]  
[/COLOR]
