# Data display problem within flash

**URL:** <https://forum.kirupa.com/t/data-display-problem-within-flash/226418>\
**Category:** flash\
**Created:** [May 21, 2007, 11:33am UTC](https://forum.kirupa.com/t/data-display-problem-within-flash/226418 "2007-05-21T11:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sr2000](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@sr2000](https://forum.kirupa.com/u/sr2000)\
**Post date:** [May 21, 2007, 11:33am UTC](https://forum.kirupa.com/t/data-display-problem-within-flash/226418/1 "2007-05-21T11:33:25Z")

</div>

I have got a form within my Flash movie that contains a drop down box that lists options from a MySQL database. Once one of these options is selcted I want to display some data within a label, loader and text area (that also comes from the database). I have managed to get the movie to read the data from the database to create the array of options on the combo box but once an option is selected the data appears in the labels etc as ‘undefined’.

The way I am passing the data to Flash is by using php files to create an XML array which links to XML connectors in the movie. I am also using a data set that stores all the data to be displayed within the labels etc.

I really am at a loss with this at the moment and would apprieciate some help.

Below is the ActionScript that I am using in the movie.

```auto
problem_xml.trigger(); 
comboFunction = new Object(); 
comboFunction.change = function(evt) { 
   var nr:Number = evt.selectedIndex 
   var st:String = evt.target.selectedItem 
   _root.description_mc.products_xml.direction = "receive"; 
   _root.description_mc.products_xml.URL = "scripts/products.php?problem="+evt.target.selectedItem.label; 
   _root.description_mc.products_xml.trigger(); 
   _root.description_mc.name_txt.text = _root.description_mc.problem_ds.items[st].Name; 
   _root.description_mc.details_txt.text = _root.description_mc.problem_ds.items[st].Details; 
   _root.description_mc.picture_img.load("images/"+_root.description_mc.problem_ds.items[st].Image); 
   this.updateData(0); 
}; 
problem_cb.addEventListener("change", comboFunction); 
stop();

```

Many thanks

PS  
I am basically trying to recreate something similar to [this](http://www.adobe.com/devnet/flash/articles/flash_xmlphp.html) but minus the datagrid section.
