# PopUpManager component problem

**URL:** <https://forum.kirupa.com/t/popupmanager-component-problem/181736>\
**Category:** flash\
**Created:** [March 12, 2006, 4:01pm UTC](https://forum.kirupa.com/t/popupmanager-component-problem/181736 "2006-03-12T16:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokhan](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gokhan](https://forum.kirupa.com/u/gokhan)\
**Post date:** [March 12, 2006, 4:01pm UTC](https://forum.kirupa.com/t/popupmanager-component-problem/181736/1 "2006-03-12T16:01:58Z")

</div>

Hi kirupa people, I cannot use the PopUpManager class.

```auto
import mx.managers.PopUpManager
import mx.containers.Window
win = PopUpManager.createPopUp(_root, Window, true, {closeButton:true});
lo = new Object();
lo.click = function(){
    win.deletePopUp();
}
win.addEventListener("click", lo);

```

I copied this code from the flash help but I get

```auto
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Type mismatch.
     win = PopUpManager.createPopUp(_root, Window, true, {closeButton:true});
Total ActionScript Errors: 1 Reported Errors: 1

```

Note: I have window component in my library.

Any idea?
