Comment 27 for bug 625140

Revision history for this message
Jens Wegar (jens-wegar) wrote :

Great work so far! The ellipse limitation did jump at me straight away. I get the following error when compiling:

com.adobe.fxg.FXGException: Path data is invalid.

This happens at line 81, which should be the head of the stickman on the box (see attached zip->ApplicationIconFormatted.fxg)

Also if possible, the gradient support would need improvement. Having looked at what the designers I've worked with push out, both gradients and ellipses tend to be in heavy use, so I recon it would be a priority to improve support in these two areas. A minor issue seems to be that the scaling is not quite correct (see attached zip->SVG_FXG_export_comparison 20101216). Not sure however if this is because of differences in how Flex handles svg vs. fxg or if it's an issue with the fxg exporter.

I tried using the created fxg as a base for a new project in Flash Catalyst, but it seems Catalyst does not understand the file correctly. The artwork is there and layers are created, but the artwork only shows up as transparent on the canvas (although the layer icons for some reason do render the artwork). Also the syntax highlighting in the Catalyst code viewer does not seem to recognize the fxg code generated by the Inkscape export. I'll try to figure out why this is.

I attached a zip with the files that I used for testing. The package contains the following:

application-icon.svg - The original file as created in Inkscape
ApplicationIcon_OriginalExport.fxg - The exported fxg directly from Inkscape
ApplicationIconFormatted.fxg - The same as above, expect I added line breaks and indentation between tags for easier debugging in Flash Builder (btw. it would be nice if the exporter could do this automatically)
ApplicationIcon.fxg - The fxg after I converted the ellipse to a path as suggested in the Wiki
SVG_FXG_export_comparison 20101216.png - A screenshot of what the SVG and FXG look like in a Flex application. Image on the right is the application-icon.svg and what it should look like. Image on the left is the ApplicationIcon.fxg.

But again, so far great work. Using this I can already start to implement FXG in my projects.