PDA

View Full Version : Collection tag in action


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?

don simon
07-19-2006, 10:31 AM
Ok, so I followed this tutorial:
http://www.timscollick.com/blog/?p=21

and when implementing it on my component Flash crashed when compiling. :eek: Then I copied the simple example in the tutorial and then Flash crashed just by opening the FLA. :mad: Wtf? Seems unstable!

Has anyone succeeded with using [collection]? How?