protected var categoryXML:XML;
protected var categoryArr:ArrayCollection;
protected var categoryList:IList;
for (var i:int=0;i<getLength(categoryXML.category);i++) {
trace(categoryXML.category[i].name);
categoryArr[i] = categoryXML.category[i].name;
}
I’m having trouble with this bit of code…
The trace here works great, and I get the response I expect, but when I try to add it to the categoryArr variable, I get yelled at and told it’s null.
What could cause the difference here?
Thanks!
did you try to create your
ArrayCollection:categoryArr = new ArrayCollection();?