swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] SWFC Outline SVG code and unknown primitive error


From: Chris
Subject: Re: [Swftools-common] SWFC Outline SVG code and unknown primitive error
Date: Fri, 3 Sep 2010 16:37:02 +0200

>On Thu, 2 Sep 2010 16:54:45 -0300
>"Jorge" <address@hidden> wrote:

> Hi,
> 
> I have to use some piece of SVG code extracted from a SVG file in .outline 
> directive in SWFC program, but I have a lot of warning errors:
> 
> drawer: Warning: unknown primitive '-104.709' ...
> 
> The SVG original code is:
> 
> <path id="_163941752" class="fil0" d="M455.976 
> 431.064c-102.703,178.248 -271.821,281.356 -376.53,229.501 -104.709,-51.8535  
> -106.034,-239.521 -3.33065,-417.769 102.753,-178.066 271.624,-281.311 
> 376.333,-229.457 104.709,51.8544 106.232,239.477 
> 3.52786,417.725zm-26.7341 -25.7603c-85.3625,177.269 -228.615,292.2 
> -318.818,254.326 
>  -90.5966,-37.0113 -93.7256,-212.854 -7.81993,-390.438 85.5104,-177.495 
> 228.514,-292.564 319.113,-254.778 90.4487,37.2376 93.3303,212.942 
> 7.52499,390.89z"/>

'Unknown Primitive' means it can't make sense of your path data.

ttbomk, here's why..

Not only is there a lot more to path data than SWFtools can handle, it
is also quite likely that whatever SVG program you used didn't follow
the w3c standards.
 
SVGs are very sensitive to bad formatting, especially how you line up the
elements, where you put the CRs, etc.  Also, SWFTools doesn't appear to
understand lower case Path Data commands, so use Upper Case Only.

I've attached a revised version of your 'logo-180x180.sc' to this email.
Mainly so the formatting doesn't get destroyed.  Compile with swfc then
take a look and see if it is what you expected ( I'm logically guessing
here, ok? :o)  )

If you'd also care to gently fry you brain, here are two relevant links:

        http://www.w3schools.com/svg/svg_path.asp

        http://www.w3.org/TR/SVG/paths.html

HTH.

Regards,


Chris.

Attachment: logo-180x180.sc
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]