Hello, I've just installed ming 0.4.2 on my ubuntu station and wanted to "decompile" an existing swf file to python, then make a few changes and "recompile" it. I went through 2 issues : 1/ swftopython generates a few non python statements : for example things like $i2->skewXTo(0.229837); instead of i2.skewXTo(0.229837) I did the changes manually 2/ After making those changes in the source I tried to regenerate a swf file but I got an error : failed assertion 'SWFOutput_numSBits(dy) < 18' in shape.c:702 without any python traceback. By running the program step by step, I found out that it crashed on a SWFShape drawLine. Here is the code up to this part of the script : from ming import * Ming_useSWFVersion(7); m = SWFMovie(); #add setscale here m.setDimension(11000, 8000); m.setFrames(75); # SWF_SETBACKGROUNDCOLOR m.setBackground(0xff, 0xff, 0xff); # SWF_DEFINESHAPE # Shape 1 (TYPE=1, RECT=-10,10994 -29,8036) character1 = SWFShape(); #1 fillstyle(s) character1_g0 = SWFGradient(); character1_g0.addEntry(0.000000,0x4a,0x0f,0xb9,0xff); character1_g0.addEntry(1.000000,0xa6,0xb0,0xea,0xff); character1_f0 = character1.addGradientFill(character1_g0,SWFFILL_RADIAL_GRADIENT); character1_f0.scaleTo(1.237368, 1.688283); character1_f0.moveTo(-30, -116); #1 linestyles(s) character1_l0_width = 20; character1_l0_red = 0x33; character1_l0_green = 0x33; character1_l0_blue = 0x33; character1_l0_alpha = 0xff; # StateLineStyle: 1 character1.setLine(character1_l0_width, character1_l0_red, character1_l0_green, character1_l0_blue, character1_l0_alpha); character1.setRightFill(character1_f0); character1.movePenTo(10984, -19); character1.drawLine(0, 8045); ####### crash occurs here. character1.drawLine(-10984, 0); character1.drawLine(0, -8045); character1.drawLine(10984, 0); Could someone explain what goes wrong ? Thanks. ------------------------------------------------------------------------- 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