swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] AVM2 for png2swf


From: Heinz Mueller
Subject: Re: [Swftools-common] AVM2 for png2swf
Date: Fri, 25 Apr 2008 17:48:21 +0200


On Fri, Apr 25, 2008 at 11:40 AM, Matthias Kramm <address@hidden> wrote:
On Fri, Apr 25, 2008 at 11:06:12AM +0200, Heinz Mueller <address@hidden> wrote:
> > png2swf is AVM2 compatible, yes. It's not using any "real" Actionscript,
> > but files generated with "-T 9" will have the proper Flash 9 AVM2
> > FILEATTRIBUTE tags.
> >
> Does that mean that operation inside a swf generated by png2swf are callable
> by an importing swf? e.g. when embedding a png2swf generated swf in another
> swf I'd like to be able to call start() and stop() on it.

Yes, that's possible. Just make sure you generate a SWF of the right
version, by using -T <version>


I compiled the lastest source from HEAD, and ran png2swf -z -r 30 -T 9 -o movie.swf *.png to create my swf.  swfdump shows

[HEADER]        File version: 9
[HEADER]        File is zlib compressed. Ratio: 95%
[HEADER]        File size: 1366832
[HEADER]        Frame rate: 30.000000
[HEADER]        Frame count: 155
[HEADER]        Movie width: 600.00
[HEADER]        Movie height: 120.00

Yet calling stop() on the swf after loading it into another swf running on swf2 doesn't seem to work. It's still happily playing in loops. Any ideas?

Thanks,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]