OK, here's a hexdump of the first 16B of flash9.swf. flash8.swf, apart from the version byte, is identical:
43 57 53 09 00 01 00 00 78 9c 4b 60 50 3b c0 60 Here's the same after the swf2xml2swf cycle: 43 57 53 09 00 01 00 00 78 da 4b 60 50 3b c0 60 So, there is a difference. The problem is, I have forgotten that it would have to be an uncompressed SWF. Could you do another without compression, please? Mark On Nov 13, 2007 11:34 PM, Joel Poloney <[EMAIL PROTECTED]> wrote: > Here's the url to a zip file that contains an eclipse Flex 2 project: > http://joel.poloney.com/SWFMill.zip (I wasn't sure if I could attach it to > the mailing list, so I put it on my own site). > > It's pretty simple. There are 2 flash files: flash8.swf and flash9.swf. > These have been compiled in Flash 8/AS2 and Flash 9/AS3 respectively (via > Flash CS3). These movie file are both 4 frame movies (I made a square and > colored it differently in each frame). You can go ahead and run a > swf2xml/xml2swf on the flash9.swf and modify the SWFMill.mxml file > accordingly. You will want to uncomment out the movie.gotoAndStop line too. > When you run this as a Flex application, it'll complain about the AVM > versions when you using the flash8.swf and the swf2xml/xml2swf version of > flash9.swf (flash9.swf works fine, though). > > I think that swfmill is compiling this into Flash 9, but with AS2 and not > AS3 (which is required for Flex). pdf2swf also ran into a similar problem a > few months ago. You can see that thread here: > http://www.mail-archive.com/[EMAIL PROTECTED]/msg01107.html. > > In the meantime, I'm going to try to create this LocalConnection wrapper to > communicate between AS2 and AS3 movies. And, I'd love to help out with the > documentation of this. At least I could provide some good documentation on > this specific problem :) > > -- Joel > > > > On Nov 13, 2007 1:22 PM, Mark Winterhalder <[EMAIL PROTECTED]> wrote: > > If a SWF that gets imported as AVM2 gets imported as AVM1 after an > > xml2swf/swf2xml round/trip, then there is indeed something going > > wrong. If you can provide a very, very simple SWF where that happens, > > I'll see if I can find the problem looking at a hexdump when I find > > the time, so somebody can fix it. > > > > Regarding your previous mail, there are two different XML dialects. > > Swfmill works with swfml-ll ("low level") internally, it's what > > swf2xml gives you, essentially an XML representation of the SWF tags. > > swfml-s ("simple") is the one most people use, but it's actually just > > a built-in standard xslt stylesheet that gets transformed to swfml-ll. > > > > As far as documentation is concerned, there is some, but not as much > > as one could hope for. Ideally questions answered here would go > > straight to the wiki -- you're welcome to help. > > > > Mark > > > > > _______________________________________________ > swfmill mailing list > swfmill@osflash.org > http://osflash.org/mailman/listinfo/swfmill_osflash.org > > _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org