# comboBox and XML problem

**URL:** https://forum.kirupa.com/t/combobox-and-xml-problem/121700
**Category:** Uncategorized
**Created:** [September 5, 2004, 10:49pm UTC](https://forum.kirupa.com/t/combobox-and-xml-problem/121700 "2004-09-05T22:49:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jahero](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jahero](https://forum.kirupa.com/u/jahero)
#### Post date: [September 5, 2004, 10:49pm UTC](https://forum.kirupa.com/t/combobox-and-xml-problem/121700/1 "2004-09-05T22:49:11Z")

</div>

Hi!

My problem looks:

In first scene I create two metods, one [with XML() object] to import and parse data from xml file, second [MovieClipLoader()] to load external .jpg files in my movie.

In next scene, I have one comboBox filled with entries from xml, and clip where I place my photos:

And, the PROBLEM IS:

when I test movie, with bandwith streaming (any speed) all looks good, my comboBox is full, but when I play movie with normal test (ctrl+enter) or in browser, my combo box is empty (just black border)…  
But I’m sure that XML is parsed correctly, because there’s an image loaded from array within I store all data from XML.  
Ok. here’s my code:

```auto

 MyLoader = new MovieClipLoader();

MyLoader.onLoadStart = function(targ){
	_root.holder.trace = "preloading";
};

 MyLoader.onLoadInit = function(targ)
{
	_root.holder.trace = "OK";
	targ._alpha = 0;	
	_root.holder.trace = _root.strojeArr[_root.stroje_list.selectedIndex].opis;
};

_root.strojeArr = new Array();

myXml = new XML();
myXml.ignoreWhite = true;
myXml.onLoad = function(ok)
{
	if(ok)
	{
		_root.zestaw = this.firstChild;
		for(i=0;i<_root.zestaw.childNodes.length;i++)
		{
			_root.strojeArr* = new Object();
			_root.item = _root.zestaw.childNodes*.childNodes;
			// tytul
			_root.strojeArr*.tytul = _root.item[0].firstChild.nodeValue;
			//opis
			_root.strojeArr*.opis = _root.item[1].firstChild.nodeValue;
			//img
			_root.strojeArr*.img = _root.item[2].attributes.src;
			// dodaje tytul
    	    _root.stroje_list.addItem({item:_root.strojeArr*.tytul});    		
		}
	_root.MyLoader.loadClip("stroje/"+_root.strojeArr[0].img,_root.emptyClip);
	}
};
 

```
