Hi,

This will work for you
PHP Code:
stop();
var 
shoplistXML:XML = new XML();
shoplistXML.ignoreWhite true;

var 
m:Number 0;

var 
category:Array = new Array();
var 
categoryname:Array = new Array();

shoplistXML.onLoad = function(success)
{
    if (
success)
    {
        var 
category:Array = shoplistXML.firstChild.childNodes;
        for (
0category.lengthm++)
        {
            
categoryname[m] = shoplistXML.firstChild.childNodes[m].attributes.name;
            
duplicateMovieClip("catname""catname" m_root.getNextHighestDepth());
            
_root["catname" m]._y 50 * (1);
            
_root["catname" m]._x 300;
            
_root["catname" m].catname_txt.htmlText categoryname[m];
            
trace(_root["catname" m].catname_txt.text " - " _root["catname" m]._name);
        }
    }
};

shoplistXML.load("shoplist_gallery.xml"); 
but you are better off duplicating a clip that is off stage, the first one made it awkward to manage.
you could always attachmovie clip instead from the library, but this works.