# ActionScript only works once?

**URL:** <https://forum.kirupa.com/t/actionscript-only-works-once/213274>\
**Category:** flash\
**Created:** [January 18, 2007, 8:54am UTC](https://forum.kirupa.com/t/actionscript-only-works-once/213274 "2007-01-18T08:54:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quackpack](https://avatars.discourse-cdn.com/v4/letter/q/8e7dd6/32.png) [@quackpack](https://forum.kirupa.com/u/quackpack)\
**Post date:** [January 18, 2007, 8:54am UTC](https://forum.kirupa.com/t/actionscript-only-works-once/213274/1 "2007-01-18T08:54:39Z")

</div>

Hi all!

Im trying to get a dropdown meny to work with my flipbook. The thing is that it works just fine if it runs once, but after the script has been used it won´t work again.

My code:

```auto
 
var lo = new Object();
lo.change = function (evt_obj:Object) {
 var dest_page_number = evt_obj.target.selectedItem.data;
 myBook.flipGotoPage(dest_page_number);
}
combo_mc.addEventListener("change", lo);
function onInit(){
 number_txt.text = pageNumber;
 lo.book = myBbook;
}

```
