How to add the Array value in ListBox.
hi ,
i new flex.
i assing array in list control doesn't show value. show object.
this coding.
please me.
var request:urlrequest = new urlrequest("domaindetail.xml");
loader.load(request);
loader.addeventlistener(event.complete, oncomplete);
function oncomplete(event:event):void
{
var loader:urlloader = event.target urlloader;
if (loader != null)
{
externalxml = new xml(loader.data);
//trace(externalxml.toxmlstring());
each (var domain:xml in externalxml.children())
{
domainarray.push({id:domain.domainid,title:domain.domainname});
}
domainnamelist.dataprovider=domainarray;
}
}
i new flex.
i assing array in list control doesn't show value. show object.
this coding.
please me.
var request:urlrequest = new urlrequest("domaindetail.xml");
loader.load(request);
loader.addeventlistener(event.complete, oncomplete);
function oncomplete(event:event):void
{
var loader:urlloader = event.target urlloader;
if (loader != null)
{
externalxml = new xml(loader.data);
//trace(externalxml.toxmlstring());
each (var domain:xml in externalxml.children())
{
domainarray.push({id:domain.domainid,title:domain.domainname});
}
domainnamelist.dataprovider=domainarray;
}
}
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment