-
1. Re: SpriteSheetExporter.exportSpriteSheet()
maki99 Aug 7, 2012 1:39 AM (in response to community help)The description of the parameters above is clearly wrong. It should probably say something like:
- path A string, expressed as a file:/// URI, that specifies the path and name of the exported spritesheet image file.
- imageFormat A string specifying the file format of the image file ("PNG" or "JPG" is what I've succeded in using so far).
- writeMetaData Optional. A boolean specifying whether or not a external file containing the spritesheet metadata should be generated. Defaults to true.
Also, the spritesheet images always seem to come with solid backgrounds, even for PNG's, which needless to say make them useless in many (well, most) cases. My guess is that this is a bug. But, if this is expected behavior, and there is a way to get transparent backgrounds, the documentation should be updated to include this information.
-
2. Re: SpriteSheetExporter.exportSpriteSheet()
samahn Aug 7, 2012 7:28 AM (in response to maki99)Hi maki99, sounds like you've had more luck with this than I have.
Even with a valid URI path and "PNG" imageFormat, I still get this error:
exportSpriteSheet: Argument number 1 is invalid.
Do you know if there are any nuances with the URI path value?
Also regarding solid backgrounds, try these values for the imageFormat: RGBA8888, PNG32
-
3. Re: SpriteSheetExporter.exportSpriteSheet()
maki99 Aug 7, 2012 8:27 AM (in response to samahn)Hi samahn,
Re the "Argument 1" error, I just responded to your forum query: http://forums.adobe.com/thread/1037600.
Neither "RGBA8888" nor "PNG32" are accepted as the imageFormat parameter.
Thanks
-
4. Re: SpriteSheetExporter.exportSpriteSheet()
onneponne Oct 17, 2012 4:40 AM (in response to maki99)As 'aviPro' had found out (http://forums.adobe.com/message/4780696#4780696), the second parameter can have more choices:
{
format:"png"
, bitDepth:32
, backgroundColor:"#00000000"
}
This is how you can get the transparent background for example.
-
5. Re: SpriteSheetExporter.exportSpriteSheet()
paullaster Dec 21, 2012 5:06 PM (in response to community help)Is it possible to the invoke the built in flash spritesheetexporter at this point? It would be great for the user to be able to change the settings through the built in SpriteSheetExporter and that the window would return the results to JSFL.

