# \[AS2\] New to AS2 and need help with listbox component and XML files

**URL:** <https://forum.kirupa.com/t/as2-new-to-as2-and-need-help-with-listbox-component-and-xml-files/281113>\
**Category:** flash\
**Created:** [February 5, 2009, 12:59am UTC](https://forum.kirupa.com/t/as2-new-to-as2-and-need-help-with-listbox-component-and-xml-files/281113 "2009-02-05T00:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lurker](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Lurker](https://forum.kirupa.com/u/Lurker)\
**Post date:** [February 5, 2009, 12:59am UTC](https://forum.kirupa.com/t/as2-new-to-as2-and-need-help-with-listbox-component-and-xml-files/281113/1 "2009-02-05T00:59:17Z")

</div>

I want to populate my listbox with all the XML files in the same directory as the .swf, but I also want to release my final .swf to others, so I can’t just use the directory that directs toward the folder on just my computer. How would I go around doing this, and how would I refer to the selected item in the listbox in order to use the selected file? Sorry if this is actually really easy, but as indicated in the topic title, I not sure how I would go around doing this due to my noobiness in coding.

Thanks in advance,

~Lurker
