I put the MC that contains the script for creating a window inside of another MC. When I do that, the script does not create a new window. Why? I have the window component in the library of the childMC and the below script is in the childMC. The openBTN creates a window when childMC is not inside parentMC.
Is this a “KnownIssue”?
parentMC-childMCwiththeWindowCreate
var addWin:MovieClip = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, contentPath:"addMC"});
var winListener:Object = new Object();
winListener.click = function(evt_obj:Object) {
addWin.deletePopUp();
};
winListener.complete = function(evt_obj:Object) {
addWin.setSize(addWin.content._width, addWin.content._height + 25);
}
addWin.addEventListener("click", winListener);
addWin.addEventListener("complete", winListener);
addWin.title = "Add New Submenu"
addWin.move((Stage.width/2)-addWin._width,(Stage.height/2)-addWin._height)