I am trying to create XML driven image gallery using AS2. Here is my code.
var myxml:XML=new XML();
myxml.ignoreWhite=true;
myxml.load(“gal2.xml”);
myxml.onLoad=function(success)
{
xmlnode=this.firstChild;
leng=xmlnode.childNodes.length;
image=[];
for(i=0;i<leng;i++)
{
image*=xmlnode.childNodes*.firstChild.nodeValue;
img_mc.createEmptyMovieClip(“p_mc”+i,img_mc.getNextHighestDepth());
eval(“p_mc”+i).loadMovie(image*)
}
}
but it cannot display anything on the stage. Please help me.
Thanks in advance