Hi!<br><br>I think I found a bug?? in swfmill's svg import. <br>I made two svg with Inkscape: a red rectangle (rectangle1.svg) and a blue rectangle(rectangle2.svg).<br>I tried to import them to an swf with swfmill and place them on the screen. (
bugExample.xml)<br><br><?xml version="1.0" encoding="utf-8"?><br><movie version="7" width="300" height="300" framerate="21"><br> <background color="#FFFFFF" />
<br> <frame><br> <library><br> <clip id="svg1" import="rectangle1.svg"/> <!-- The red rectangle --><br> <clip id="svg2" import="rectangle2.svg
"/> <!-- The Blue rectangel --><br> </library><br> <place id="svg1" x="0" y="0" depth="1"/> <!-- Red rectangle on the screen --><br> <place id="svg2" x="100" y="0" depth="2"/> <!-- it should be blue but it will be red too-->
<br> </frame><br></movie><br><br>There should be a red and a blue rectangle on the screen, but there is two red rectangle.<br>When i change the order of the import (rectangle2 first), then there is two blue rectangle.
<br><br>I used the swf2xml function on the generated swf (bugExamleDecompiled.xml) and i found that swfmill assigned the objectID="2" twice<br><br><br>...<br> <DefineSprite objectID="2" frames="1">
<br> <tags><br> <PlaceObject2 replace="0" depth="2" objectID="3" name="rect1880"><br> <transform><br> <Transform transX="0" transY="0"/>
<br> </transform><br> </PlaceObject2><br> <ShowFrame/><br> <End/><br> </tags><br> </DefineSprite><br> <Export><br> <symbols>
<br> <Symbol objectID="2" name="layer1"/><br> </symbols><br> </Export><br>...<br> <DefineSprite objectID="2" frames="1"><br> <tags>
<br> <PlaceObject2 replace="0" depth="5" objectID="6" name="rect4574"><br> <transform><br> <Transform transX="0" transY="0"/>
<br> </transform><br> </PlaceObject2><br> <ShowFrame/><br> <End/><br> </tags><br> </DefineSprite><br> <Export><br> <symbols>
<br> <Symbol objectID="2" name="layer1"/><br> </symbols><br> </Export><br>...<br><br>I changed the rectangle2.svg (rectangle2Changed.svg)(actually the layer id to layer2) and the generated swf is fine. There is a red and a blue rectangle.
<br><br>I think there is a bug?? in the objectID assignment of the layers. I think it couldn't be expected to have different layer ids in every svg.<br><br>The sources can be found at <a href="http://www.freeweb.hu/abalage/bugexample.zip">
http://www.freeweb.hu/abalage/bugexample.zip</a><br><br>I used swfmill version <a href="http://0.2.11.19">0.2.11.19</a><br><br>PS: sorry for my english<br><br>THX.<br>Balazs Andorko