don simon
07-18-2006, 05:34 PM
Hi,
I've added the [Inspectable] tag to a couple of variables in my component, so that they are shown in the Component Inspector. Works fine, what got me stuck though is that I need to do the same for an Array full of objects. Each of these objects have two variables. Like this:
var items:Array = new Array();
for (index in items) {
items[index].snd="string";
items[index].img="string";
}
How can I get it accessible in the Component Inspector? It seems the [collection] tag is the answer, but I just can't get a grip of how to use it... Has anyone got a clue?
I've added the [Inspectable] tag to a couple of variables in my component, so that they are shown in the Component Inspector. Works fine, what got me stuck though is that I need to do the same for an Array full of objects. Each of these objects have two variables. Like this:
var items:Array = new Array();
for (index in items) {
items[index].snd="string";
items[index].img="string";
}
How can I get it accessible in the Component Inspector? It seems the [collection] tag is the answer, but I just can't get a grip of how to use it... Has anyone got a clue?