Hi Russ, 2010/1/12 Russ Adams <rad...@cafeid.com>: > If I change the TextRecord7's to TextRecord6's, do you think swfmill 0.3.0 > will retain them?
Sorry for the delay responding. The quickest solution to your problem is to convert your xml to swf using swfmill 0.2.6: swfmill xml2swf foo.xml foo.swf and then convert it back to XML using swfmill 0.3.0: swfmill swf2xml foo.swf foo.swf.xml You will see that the TextRecord7s become: <TextRecord6 isSetup="1" objectID="1" y="220" fontHeight="240"> <color> <Color red="0" green="0" blue="0"/> </color> </TextRecord6> <TextRecord6 isSetup="0"> <glyphs> <TextEntry glyph="65" advance="210"/> <TextEntry glyph="66" advance="240"/> <TextEntry glyph="67" advance="188"/> </glyphs> </TextRecord6> <TextRecord6 isSetup="0"> <glyphs/> </TextRecord6> It’s a bit of a mystery to me why this seems to work, because the SWFs being produced by swfmill 0.2.6 ought to be unreadable. Unfortunately I don’t really have time to investigate right now. swfmill 0.3.0 expects DefineText to contain TextRecord6, and DefineText2 to contain TextRecord7. This is correct behaviour. swfmill 0.2.6 expected both DefineText and DefineText2 to contain TextRecord6 if you are targeting SWF version 6 or below, or TextRecord7 if you are targeting SWF version 7 or above. This is incorrect. The official SWF spec defines a single TEXTRECORD data structure with the following caveat: Field: TextColor Type: If StyleFlagsHasColor, RGB; If this record is part of a DefineText2 tag, RGBA swfmill has to treat this as two different data structures due to swfmill’s internal design. Hope this helps, let me know if you need more info. Cheers, Dan. _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org