Re: [patch] skewXTo

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

 



Hi,

could you please produce a testcase triggering this bug. I just tried to 
reproduce the behavior you get. What I did:

Created a SWF file containing the following:

SWFShape s = newSWFShape();
// do stuff with shape
SWFDisplayItem i = SWFMovie_add(m, s);
SWFDisplayItem_skewXTo(i, 2.0);
SWFDisplayItem_skewYTo(i, 2.0);
SWFMovie_save(m, "test.swf");

running swftopython test.swf looks good to me:

i1 = m.add(character1);
# PlaceFlagHasMatrix
i1.skewXTo(2.400000);


Cheers
    Klaus

> le 29.11.2008 15:07 Klaus Rechert a écrit:
>> Hi,
>>
>> I'm not sure if your patch is correct. What is the exact output? If 
>> there is something wrong then the methodcall() abstraction needs to 
>> be fixed.
> what was wrong is that methodcall() was not called and the output was 
> "$%s->skewXTo(%f);\n", fname, skew
> whatever the outgoing language was and something like 
> "$xxx->skewXTo(123);" is not a python statement...
>
> With the patch, I get a correct python syntax : "xxx.skewXTo(123);" 
> (even if the ; is totally unnecessary...)
>>
>> Thanks for helping MING!
>>
>>    Klaus
>>> Here a patch for the skewXTo not generated correctly in python. It 
>>> is based on the code from 0.4.2 distribution :
>>>
>>> 337c337
>>> <     printf ("%s(%f);\n", methodcall (fname, "skewXTo"), skew);
>>> ---
>>>  >     printf ("$%s->skewXTo(%f);\n", fname, skew);
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------- 
>>>
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win 
>>> great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in 
>>> the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Ming-users mailing list
>>> Ming-users@xxxxxxxxxxxxxxxxxxxxx
>>> https://lists.sourceforge.net/lists/listinfo/ming-users
>>>   
>>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux