void xmlEvent(XMLElement element){ flfont = element; initElement(); } boolean loaded = false; XMLElement flfont; XMLElement[] flglyphs_xml; FLGlyph[] flglyphs; void initElement(){ println(flfont); int g_count = 0; //ok, go on loading xml for(int i = 0; i < flfont.countChildren(); i++){ if(flfont.getChild(i).getName().equals("FLGlyph")){ g_count++; } } println(g_count); flglyphs_xml = new XMLElement[g_count]; flglyphs = new FLGlyph[g_count]; int g_i = 0; for(int i=0; i < flfont.countChildren();i++){ if(flfont.getChild(i).getName().equals("FLGlyph")){ flglyphs_xml[g_i] = flfont.getChild(i); flglyphs[g_i] = new FLGlyph(); XMLElement[] c_xml = new XMLElement[flglyphs_xml[g_i].countChildren()]; println("c_xml.length = "+c_xml.length); for(int c_i = 0; c_i