Hello Juan, thanks for the sample movie. I found the bug in the xml to swf conversion, that caused the error and wrote a patch that should fix the problem.
Ralf > Hello Ralf, > > I tested first with 0.2.12 version and later I get the same behavior with > swfmill 0.2.12.4. A sample movie is attached, is not the same movie I was > working in, but it reproduce the bug(?). > > Thanks for the quick response, I hope this help to improve such a great tool. > > Juan
Index: src/codegen/source.xml =================================================================== --- src/codegen/source.xml (Revision 216) +++ src/codegen/source.xml (Arbeitskopie) @@ -39,8 +39,8 @@ <fixedpoint name="skewY" signed="true" size="bitsSkew" exp="16" prop="true" default="1"/> </flagged> <integer name="bitsTranslate" size="5" constant-size="true"/> - <integer name="transX" signed="true" size="bitsTranslate" prop="true" default="0"/> - <integer name="transY" signed="true" size="bitsTranslate" prop="true" default="0"/> + <integer name="transX" signed="true" size="bitsTranslate" min-size="1" prop="true" default="0"/> + <integer name="transY" signed="true" size="bitsTranslate" min-size="1" prop="true" default="0"/> <fill-byte/> </type> Index: src/codegen/parsexml.xsl =================================================================== --- src/codegen/parsexml.xsl (Revision 216) +++ src/codegen/parsexml.xsl (Arbeitskopie) @@ -154,6 +154,7 @@ <xsl:otherwise> int b = SWFBitsNeeded( <xsl:value-of select="@name"/><xsl:if test="@signed">, true</xsl:if> ); <xsl:if test="@size-add">b -= <xsl:value-of select="@size-add"/>;</xsl:if> + <xsl:if test="@min-size">if( b < <xsl:value-of select="@min-size"/> ) b = <xsl:value-of select="@min-size"/>;</xsl:if> if( b > <xsl:value-of select="@size"/> ) <xsl:value-of select="@size"/> = b; </xsl:otherwise> </xsl:choose>
_______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org