# \[Flash8\] Combo boxes, Photo Galleries, xml, and much much more!

**URL:** https://forum.kirupa.com/t/flash8-combo-boxes-photo-galleries-xml-and-much-much-more/193411
**Category:** flash
**Created:** [July 13, 2006, 4:56am UTC](https://forum.kirupa.com/t/flash8-combo-boxes-photo-galleries-xml-and-much-much-more/193411 "2006-07-13T04:56:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![krnchoe](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@krnchoe](https://forum.kirupa.com/u/krnchoe)
#### Post date: [July 13, 2006, 4:56am UTC](https://forum.kirupa.com/t/flash8-combo-boxes-photo-galleries-xml-and-much-much-more/193411/1 "2006-07-13T04:56:22Z")

</div>

Ok…I was kidding about the much much more part. However, I really do need help as I am clueless when it comes to linking xml with flash. Right now, I have a successful combo box that loads an external jpg to flash from a folder where I store all my images. However the information that is given about the pictures are all in the flash code. I have an xml document, and I was wondering if there’s any way I can load information from the xml file rather than supplying it in the flash code,

## this is currently the flash code:

combo\_cb.addItem(“0001 The Assasain”, 1);  
combo\_cb.addItem(“0002 The Confrontation”, 2);

combo\_cb.swapDepths(2);

lo = new Object();  
lo.change = function () {

```
picture.loadMovie("manga/firstmanga/000" + combo_cb.value + ".jpg");
pos_txt.text = combo_cb.value + " / "+total;

```

## } combo\_cb.addEventListener(“change”, lo);

## And this is the XML file code

\<?xml version=“1.0” encoding=“utf-8” standalone=“yes” ?\>

- \<images\>
- \<pic\>  
\<image\>manga/firstmanga/0001.jpg\</image\>  
\<caption\>The Assasain\</caption\>  
\</pic\>
- \<pic\>  
\<image\>manga/firstmanga/0002.jpg\</image\>  
\<caption\>Confrontation\</caption\>  
\</pic\>  
\</images\>

* * *

P.S. sorry about not putting code tags around the codes, I couldn’t get them to work.
