[swfmill] Accessing frames in AS3
Joel Poloney
jpoloney at gmail.com
Tue Nov 13 14:34:21 PST 2007
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/swftools-common@nongnu.org/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 <mark13 at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20071113/dbd969af/attachment.html
More information about the swfmill
mailing list