Does anyone know if it's possible to get only some of the child symbols of a parent symbol. The getChildSymbols method doesn't take any argument like ("symbolTypeA") thus getting all child symbols without distinction. I found a way around this by "grouping" the each type of symbol into a newly created "sub-father" symbol owning symbol instances of one type only, and then, calling the getChildSymbols method inside "sub-father". But I don't like to create a symbol definition like "sub-father" which does nothing but just inlcuding another symbol definition.
Let's say I have 3 types of symbols in the stage (A, B and C), and I create several symbol instances of each type dinamically using
sym.createChildSymbol("symTypeA","Stage"), sym.createChildSymbol("symTypeB","Stage"), and sym.createChildSymbol("symTypeC","Stage"). Then I want to get just all symbols of type B, but if I use sym.getChildSymbols() I get all symbols of types A, B and C.
I'm thinking about selecting the symbols I want by adding different class names to each type, but I'm not sure if this is the best way to do it.