[swfmill] Accessing frames in AS3

Joel Poloney jpoloney at gmail.com
Tue Nov 13 12:26:05 PST 2007


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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20071113/f53d906d/attachment.html 


More information about the swfmill mailing list