This is not good

I have a major problem, so I decided to share it. Actually, I have two problems, and I need to fix them in exactlly 7 hours when I have to make a presentation. Any assistance would be much appreciated. Thank you.

The close button on my Window Component won’t close the window. Can someone please advise me on where I messed up. Here is my code.

import mx.managers.PopUpManager
import mx.containers.Window

buttonListener = new Object(); = function(){
myWindow = PopUpManager.createPopUp(_root, Window, true, {
title:“Enter Password”, contentPath:“hg” , closeButton:true })
myWindow.setSize(350, 380);

button.addEventListener(“click”, buttonListener);

NewWindowListener = new Object(); = function() {

myWindow.addEventListener(“click”, NewWindowListener);


My project is of type slide show. Whenever I add a create a symbol on my first slide I get this problem. The second slide shows up at the same time but with a transparant background, overlapping the first slide. Weird.

Thank you.