[swfmill] back from the past! ShapeSetup conversion problem (part2)

gabriel gbelvedere at gmail.com
Thu Nov 6 03:15:50 PST 2008


Hi Till,

you are right, thanks for the correction.
BUT, I did the changes you say and it just adjust the precision, but it 
does'nt justify de big deviation:


AND the rotation :(

let me remind you the original shape...


very annoying...


thanks again...



Till Schneidereit wrote:
> Hi Gabriel,
>
> I'm not sure where you get that conversion value from - the correct
> value would be 0.05, as a twip is 1/20th of a pixel:
> http://www.half-serious.com/swf/format/basic-types/index.html#coordinates
>
>
> cheers,
> till
>
> On Thu, Nov 6, 2008 at 07:28, gabriel <gbelvedere at gmail.com> wrote:
>   
>> Hi Alex,
>>     
>>> Well, I don't know where your numbers are coming from, because they are
>>> wrong. I just took your code and put it into Flash and got this:
>>>       
>>> If you get some graph paper and draw out the co-ordinates you are giving
>>> Flash, you will see that what you are telling it to do is exactly what it is
>>> doing...
>>>       
>> I get this values from swfmill in this form:
>>
>> <ShapeSetup x="4560" y="3720" fillStyle1="1"/>
>>   <LineTo x="-1760" y="0"/>
>>   <LineTo x="0" y="-1760"/>
>>   <LineTo x="1760" y="0"/>
>>   <LineTo x="821" y="821"/>
>>   <LineTo x="-821" y="939"/>
>> <ShapeSetup/>
>>
>> those numbers are twips, right?
>> you can see the attachment for the complete xml
>>
>> having x which is each number from the previous xml, and 0.06666666 the
>> pixel conversion value, if I do:
>>
>> x * 0.06666666 = my_number_inPixels. Right?
>>
>> So, if I do:
>>
>> canvas.lineTo(myCalculatedX, myCalculatedY);
>>
>> I should get the same results swfmill gets when it does it compile stuff, or
>> am I wrong? what am I missing?
>> thanks again!
>>
>>
>>
>>
>> _______________________________________________
>> swfmill mailing list
>> swfmill at osflash.org
>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>>
>>
>>     
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/swfmill_osflash.org/attachments/20081106/6af0fdc5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-36.jpg
Type: image/jpeg
Size: 2479 bytes
Desc: not available
URL: <http://osflash.org/pipermail/swfmill_osflash.org/attachments/20081106/6af0fdc5/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moz-screenshot-37.jpg
Type: image/jpeg
Size: 1990 bytes
Desc: not available
URL: <http://osflash.org/pipermail/swfmill_osflash.org/attachments/20081106/6af0fdc5/attachment-0001.jpg>


More information about the swfmill mailing list