list.add(indent, "propertiesFactory: function():Object { return {", 0);
indent += DescriptorGenerator.INDENT;
while (propIter.hasNext())
{
NamedInitializer init = (NamedInitializer)propIter.next();
if (!init.isStateSpecific())
{
list.add(indent, init.getName(), ": ", init.getValueExpr(),
(propIter.hasNext() || vcIter.hasNext() || hasDesignLayer ? "," : ""),
init.getLineRef());
}
}
if (hasDesignLayer)
{
list.add(indent, "designLayer", ": ", model.layerParent.getId(),
(vcIter.hasNext() ? "," : ""),
model.getXmlLineNumber());
}
if (vcIter.hasNext())
{
list.add(indent, "childDescriptors: [", 0);
// Generate each child descriptor unless the child as explicitly filtered out.
boolean isFirst = true;
while (vcIter.hasNext())
{
VisualChildInitializer init = (VisualChildInitializer)vcIter.next();
Model child = (MovieClip)init.getValue();
if (child.isDescriptorInit())
{
if (!isFirst)
{
list.add(indent, ",", 0);