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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;movie version=&quot;7&quot; width=&quot;300&quot; height=&quot;300&quot; framerate=&quot;21&quot;&gt;<br>&nbsp; &lt;background color=&quot;#FFFFFF&quot; /&gt;
<br>&nbsp; &lt;frame&gt;<br>&nbsp;&nbsp;&nbsp; &lt;library&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clip id=&quot;svg1&quot; import=&quot;rectangle1.svg&quot;/&gt;&nbsp;&nbsp; &nbsp;&lt;!-- The red rectangle --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clip id=&quot;svg2&quot; import=&quot;rectangle2.svg
&quot;/&gt;&nbsp;&nbsp; &nbsp;&lt;!-- The Blue rectangel --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/library&gt;<br>&nbsp;&nbsp;&nbsp; &lt;place id=&quot;svg1&quot; x=&quot;0&quot; y=&quot;0&quot; depth=&quot;1&quot;/&gt;&nbsp;&nbsp; &nbsp;&lt;!-- Red rectangle on the screen --&gt;<br>&nbsp;&nbsp;&nbsp; &lt;place id=&quot;svg2&quot; x=&quot;100&quot; y=&quot;0&quot; depth=&quot;2&quot;/&gt; &lt;!-- it should be blue but it will be red too--&gt;
<br>&nbsp; &lt;/frame&gt;<br>&lt;/movie&gt;<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=&quot;2&quot; twice<br><br><br>...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefineSprite objectID=&quot;2&quot; frames=&quot;1&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tags&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PlaceObject2 replace=&quot;0&quot; depth=&quot;2&quot; objectID=&quot;3&quot; name=&quot;rect1880&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transform&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Transform transX=&quot;0&quot; transY=&quot;0&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/transform&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PlaceObject2&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ShowFrame/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;End/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tags&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefineSprite&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Export&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;symbols&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Symbol objectID=&quot;2&quot; name=&quot;layer1&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/symbols&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Export&gt;<br>...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefineSprite objectID=&quot;2&quot; frames=&quot;1&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tags&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PlaceObject2 replace=&quot;0&quot; depth=&quot;5&quot; objectID=&quot;6&quot; name=&quot;rect4574&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transform&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Transform transX=&quot;0&quot; transY=&quot;0&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/transform&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PlaceObject2&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ShowFrame/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;End/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tags&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefineSprite&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Export&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;symbols&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Symbol objectID=&quot;2&quot; name=&quot;layer1&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/symbols&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Export&gt;<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