# Actionscript conflict with listbox and popup window

**URL:** <https://forum.kirupa.com/t/actionscript-conflict-with-listbox-and-popup-window/102755>\
**Category:** Uncategorized\
**Created:** [February 26, 2004, 6:51pm UTC](https://forum.kirupa.com/t/actionscript-conflict-with-listbox-and-popup-window/102755 "2004-02-26T18:51:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![usa420](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@usa420](https://forum.kirupa.com/u/usa420)\
**Post date:** [February 26, 2004, 6:51pm UTC](https://forum.kirupa.com/t/actionscript-conflict-with-listbox-and-popup-window/102755/1 "2004-02-26T18:51:41Z")

</div>

I’ve got a listbox as a componant with the following action on the first frame of the movie:

function foo(myVar) {  
gotoAndPlay(myVar.getSelectedItem().label);  
}

In addition I have a pop up window following the directions from:  
[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

The problem is once I open the pop up window, my listbox won’t function correctly again. No matter what I choose, it goes back to the frame where the pop up button was.  
In addition, I get an error when I try to reopen the pop up window after I close it.

Any help with the actionscript would be appreciated.  
Thanks  
Steve
