Open GoogleCodeExporter opened 8 years ago
[deleted comment]
I have the same problem. To work with SD I tried to make something like this:
1.- addSpriteFrames(String plist, InputStream is);
2.- addSpriteFrames(String plist, CCTexture2D texture, InputStream is)
3.- public static HashMap parseZwoptex(InputStream is)
throws Exception {
System.setProperty("org.xml.sax.driver", "org.xmlpull.v1.sax2.Driver");
XMLReader xr = XMLReaderFactory.createXMLReader();
ZwoptexParser handler = new ZwoptexParser();
xr.setContentHandler(handler);
xr.setErrorHandler(handler);
try {
InputStream in = is
BufferedReader reader =
new BufferedReader(new InputStreamReader(in), 8192);
xr.parse(new InputSource(reader));
return handler.getResults();
} catch (Exception e) {
ccMacros.CCLOGERROR("ZwoptexParser", "Unable to parse plist file.");
}
return null;
}
I have the same problem with CCSprites but using bitmaps it works.
Original comment by manu.msp...@gmail.com
on 23 Dec 2010 at 10:15
Original issue reported on code.google.com by
alvaro...@gmail.com
on 13 Dec 2010 at 2:47