# Calling a Function inside a Combobox

**URL:** <https://forum.kirupa.com/t/calling-a-function-inside-a-combobox/233728>\
**Category:** flash\
**Created:** [July 26, 2007, 1:27pm UTC](https://forum.kirupa.com/t/calling-a-function-inside-a-combobox/233728 "2007-07-26T13:27:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChromeDemon](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@ChromeDemon](https://forum.kirupa.com/u/ChromeDemon)\
**Post date:** [July 26, 2007, 1:27pm UTC](https://forum.kirupa.com/t/calling-a-function-inside-a-combobox/233728/1 "2007-07-26T13:27:33Z")

</div>

I have this script for me Combo Box

```auto

function nextImage2() {
    //picture.loadMovie("testimages/image1_big.jpg", 1);
    trace("FUNCTION2");
}

omboBox.addItem({data:"http://www.beispiel.de/tiere", label:"Tiere"});
comboBox.addItem({data:"http://www.beispiel.de/DerIngo", label:"DerIngo"});
comboBox.addItem({data:"http://www.flashforum.de", label:"FlashForum"});
var listener:Object = new Object();
listener.change = function(eventObject:Object) {
var beschriftung = eventObject.target.selectedItem.label;
var wert = eventObject.target.selectedItem.data;
trace(beschriftung+":"+wert);
getURL(wert, "_blank");
};
comboBox.addEventListener("change", listener);

```

How can call a Function (eg nextImage2() ) instead of an URL???

any help is much appreciated

cheers

ChromeD
