[swfmill] Accessing frames in AS3
Mark Winterhalder
mark13 at gmail.com
Tue Nov 13 13:22:09 PST 2007
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
On Nov 13, 2007 9:26 PM, Joel Poloney <jpoloney at gmail.com> wrote:
> Ok, so looking into this more, I think that this is a problem with the
> swfmill compiler. When I export a movie in Flash CS3 as Flash9/AS3 (call it
> flash9.swf), it loads into Flex as an AVM2 MovieClip and I have access to
> all of his timeline properties. I took flash9.swf and run swf2xml on it and
> saved the output to flash9.xml. I then ran the following "swfmill simple
> flash9.xml out.swf". When I load out.swf into Flex, it comes up as an AVM1
> MovieClip. This happens for both swfmill simple and swfmill xml2swf modes.
>
> Now, either I'm loading it in wrong (as what Trevor previously said), or it
> really is a problem with the swfmill compiler. It's weird that the original
> flash9.swf was reading as AVM2 and when I decompiled it and recompiled it as
> out.swf, it was reading as AVM1.
>
> Thoughts?
>
> -- Joel
>
>
>
> On Nov 13, 2007 11:45 AM, Joel Poloney <jpoloney at gmail.com> wrote:
> >
> > On Nov 13, 2007 1:58 AM, Mark Winterhalder <mark13 at gmail.com> wrote:
> >
> >
> >
> > > If everything fails, maybe somebody with access to Flash CS3 could
> > > produce a minimal SWF for both AVM1 and AVM2, so we could compare the
> > > swf2xml and look for the difference?
> > >
> >
> >
> > I checked into this. I took the same movie and exported it as Flash 9/CS3
> and Flash 8/CS2. I ran swf2xml on both of them and compared with Araxis
> Merge. The ONLY difference between the two files was the line: <swf
> version="8" compressed="1"> and <swf version="9" compressed="1">.
> >
> > Aside from this, I think there are problems with my swfmill xml (which is
> why I was asking earlier... documentation on swfmill is sparse). I ran
> swf2xml on the output swf generated from my original swfmill xml and found
> several differences between this one and the one generated from Flash CS3.
> >
> > I'm going to keep looking into why the FP thinks that it has AVM1 content
> and let you know what I find.
> >
> > -- Joel
> >
> > P.S. Any good swfmill documentation that someone might know about? I
> noticed the swf2xml version of the xml is very different than the one that I
> wrote to compile that swf.
> >
>
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>
More information about the swfmill
mailing list