# How to Make Pull-Down Menus in Flash

**URL:** <https://forum.kirupa.com/t/how-to-make-pull-down-menus-in-flash/102963>\
**Category:** Uncategorized\
**Created:** [February 29, 2004, 6:39am UTC](https://forum.kirupa.com/t/how-to-make-pull-down-menus-in-flash/102963 "2004-02-29T06:39:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb\_jane](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@kb\_jane](https://forum.kirupa.com/u/kb_jane)\
**Post date:** [February 29, 2004, 6:39am UTC](https://forum.kirupa.com/t/how-to-make-pull-down-menus-in-flash/102963/1 "2004-02-29T06:39:44Z")

</div>

I am trying to build a simple flash pull-down menu; found this on another forum and followed the example to a tee:

stop();

function item\_Select() {  
if (ChooseItems.getValue() == “item1”) {  
gotoAndStop(2); //Change this line to what you want the dropdown to do  
} else if (ChooseItems.getValue() == “item2”) {  
gotoAndStop(3);  
}else if (ChooseItems.getValue() == “item3”) {  
gotoAndStop(4);  
}else if (ChooseItems.getValue() == “item4”) {  
gotoAndStop(5);  
}  
}

…although when i test it out i get this back:

Scene=Scene 1, Layer=layer1, Frame=2: Line 20: Statement must appear within on/onClipEvent handler  
function item\_Select() {

i know the solution is simple but i’m new to flash and still trying to get the hang of the language and scripting. what’s wrong?
