[flexcoders] SVG Embed Issues

2007-09-25 Thread Daniel Cascais
Hi,

I'm working with a large set of SVG maps that are being embedded Flex.
The embedding works OK apart from a few maps. I'm having two separate
issues with these maps.

1) I get a Flash Player warning that says Warning: Failed to parse
corrupt data., and the map is not drawn at all.

OR

2) Some areas of the map are not drawn.

In both cases the SVG files display as expected in Firefox and using
Adobe's SVG Viewer. And looking at the actual SVG data doesn't really
indicate any corrupt/faulty paths. Also, the maps are not big in file
size, compared to others that are bigger and work OK.

I made some research, but couldn't find anything at all regarding this
kind of problems within Flex.

Is anyone aware of the differences between the parsing of SVG files
between the Flex Compiler and other SVG readers and why it is
displayed as expected in other readers and not in Flex?

Has anyone had experience with these issues?

Thanks,
Daniel


Re: [flexcoders] SVG Embed Issues

2007-09-25 Thread Paul deCoursey
I may be totally wrong, but I think (total guess here) that the SVG is 
read by Batik and converted to SWF when embeded.  Try loading the file 
in the Batik viewer and see if it generates any errors.

Daniel Cascais wrote:
 Hi,

 I'm working with a large set of SVG maps that are being embedded Flex.
 The embedding works OK apart from a few maps. I'm having two separate
 issues with these maps.

 1) I get a Flash Player warning that says Warning: Failed to parse
 corrupt data., and the map is not drawn at all.

 OR

 2) Some areas of the map are not drawn.

 In both cases the SVG files display as expected in Firefox and using
 Adobe's SVG Viewer. And looking at the actual SVG data doesn't really
 indicate any corrupt/faulty paths. Also, the maps are not big in file
 size, compared to others that are bigger and work OK.

 I made some research, but couldn't find anything at all regarding this
 kind of problems within Flex.

 Is anyone aware of the differences between the parsing of SVG files
 between the Flex Compiler and other SVG readers and why it is
 displayed as expected in other readers and not in Flex?

 Has anyone had experience with these issues?

 Thanks,
 Daniel