# List Box Questions

**URL:** <https://forum.kirupa.com/t/list-box-questions/22242>\
**Category:** flash\
**Created:** [June 1, 2003, 4:00pm UTC](https://forum.kirupa.com/t/list-box-questions/22242 "2003-06-01T16:00:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onLOoker](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@onLOoker](https://forum.kirupa.com/u/onLOoker)\
**Post date:** [June 1, 2003, 4:00pm UTC](https://forum.kirupa.com/t/list-box-questions/22242/1 "2003-06-01T16:00:30Z")

</div>

Does anyone know how to script the code into the list box AS.

Here’s the AS that brings up a nested movie clip in an external movie file.

on (release) {  
//set whichWindow variable to window1  
\_root.bStore = “window1”;  
\_root.\*\*\*\*.loadMovie(“macom-f1.swf”, window);  
}

List Box AS - I would like have the text in the list box to call up the nested movie clip in an external swf movie file. Basically, the code above embedded or modified into the list box AS below.

list.addItem(“MA/COM Hall Floor 1 Mega-Byte Cafe John Wilson Pic/Info.”, “macom-f2.swf”);

function launchSite(y){  
var x = y.getSelectedItem().data;  
\_root.bStore = “window1”;  
loadMovie(x, \_root.window)  
}  
list.setChangeHandler(“launchSite”);
